Distinct count values from multiple columns in excel

1.4k views Asked by At

Hello is there any function to count the distinct values of 3 or 4 columns so i do not have temp tables and other things. Also excel vba is not a case.

Like i want to count distinct languages in the table (it did not let me to place it as data). Do you want more info for help? Also some cells could be empty.

enter image description here

2

There are 2 answers

7
Scott Craner On BEST ANSWER

A simple reciprocal of a COUNTIF in a SUMPRODUCT:

=SUMPRODUCT((A2:C10<>"")/(COUNTIF(A2:C10,A2:C10)+(A2:C10="")))

enter image description here

0
kyrpav On

Taking help of Scott i fount that

=SUMPRODUCT((A6:C14<>"")/(COUNTIF(A6:C14;A6:C14&"")))

will do the work