in excel how do i count the number of unique items, for instance having A A B B C that…
- User
in excel how do i count the number of unique items, for instance having A A B B C
that returns 3 in the sample
Assistant
To count the number of unique items in a list in Excel, you can use the
UNIQUEfunction. In your case, assuming the data is in column A, you can use the following formula:=COUNTA(UNIQUE(A:A))This formula counts the number of unique items in column A, including both text and numeric values. If you want to count only text values, you can use the
ISTEXTfunction along with theCOUNTIFfunction:=SUM(IF(ISTEXT(A2:A10)*COUNTIF(A2:A11,A2:A11)=1,1,0))This formula counts the unique number of text values in the range A2:A10.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.