Hi, I am trying to count the number of unique values in a column:
When I use this: =SUMPRODUCT(1/COUNTIF(I2:I103,I2:I103))
It works perfectly.
The only issue is that the total number of rows is dynamic and when tried this: =SUMPRODUCT(1/COUNTIF("I2:I"&MAX((I:I<>"")*(ROW(I:I))),"I2:I"&MAX((I:I<>"")*(ROW(I:I)))))
I received an error
This formula: MAX((I:I<>"")*(ROW(I:BI))) returns the correct value of "103" I just don't know how to insert it into my initial formula.
Any help would be greatly appreciated.
When I use this: =SUMPRODUCT(1/COUNTIF(I2:I103,I2:I103))
It works perfectly.
The only issue is that the total number of rows is dynamic and when tried this: =SUMPRODUCT(1/COUNTIF("I2:I"&MAX((I:I<>"")*(ROW(I:I))),"I2:I"&MAX((I:I<>"")*(ROW(I:I)))))
I received an error
This formula: MAX((I:I<>"")*(ROW(I:BI))) returns the correct value of "103" I just don't know how to insert it into my initial formula.
Any help would be greatly appreciated.