I am trying to count unique values in excel by using a formula. I have tried using the formula below but it returns a #DIV!/0 error because I have blanks in my range. Is there anyway to count unique values in a range with blanks by using a formula? Any help with this issue would be greatly appreciated!
=SUM(1/COUNTIF(Usage!J2:J6000,Usage!J2:J6000))
=countif([range you need], "<>"&"")
this will count ever cell within the range that has some value in it – Kyle TegtSUMPRODUCT
in place ofSUM
the formula does not have to be entered as an array formula. – user4039065