Search code examples
excelcountuniquecriteria

Count unique values in excel Columns with blanks


I have Data in one column (m), the data contains a number of blanks & I want to be able to count the number of unique occurances that begin with the number 2.


Solution

  • Use:

    =SUMPRODUCT((LEFT(M1:M16)="2")/(COUNTIFS(M1:M16,M1:M16)+(M1:M16="")))
    

    enter image description here