Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How do you run the COUNTUNIQUE function on several columns?

Running COUNTUNIQUE(A1:C3) gives me 8, because there are 8 unique values, I want it to return 3 because I have 3 unique rows.

| A  | B  |  c  |
-----------------
| a  | 1  |     |
| b  | 2  | foo |
| b  | 2  | foo |
| c  | 3  | bar |

P.S. I use Google spreadsheets, but I guess it's the same in Excel and LibreOffice Calc

share|improve this question

migrated from superuser.com Dec 16 '12 at 9:06

This question came from our site for computer enthusiasts and power users.

    
Did you find the answer of @joseph4tw useful? I know I did. Perhaps you can flag it as such and let other people benefit from your Q&A! –  Jacob Jan Tuinstra Jan 2 '13 at 8:13
add comment

2 Answers

up vote 4 down vote accepted

In Google Spreadsheets:

=count(unique(A2:C5))
share|improve this answer
add comment

The quickest way I can think of is to concatenate the three vaules into column D and do the CountUnique on Column D

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.