I use formula "=UNIQUE(Sheet2!A1:A172;Sheet2!A:A;TRUE)" in Excel. It returns me an…
- User
I use formula "=UNIQUE(Sheet2!A1:A172;Sheet2!A:A;TRUE)" in Excel. It returns me an error: "A value used in formula is of a wrong datatype". How to fix?
Assistant
The error you're seeing is likely due to incorrect syntax for the UNIQUE function. The issue is with your second argument
Sheet2!A:A- you're mixing a specific range with an entire column reference.Here's how to fix it:
If you want unique values from A1:A172:
=UNIQUE(Sheet2!A1:A172)If you want unique values from the entire column A:
=UNIQUE(Sheet2!A:A)If you want unique values ignoring blanks:
=UNIQUE(FILTER(Sheet2!A1:A172,Sheet2!A1:A172<>""))The UNIQUE function syntax is:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.