To count the number of unique values in a range of cells, you can use a formula based on the COUNTIF and SUMPRODUCT functions. In the example shown, the formula in F6 is: =SUMPRODUCT(1/COUNTIF(B5:B14,B5:B14)) In Dynamic Excel, you can use a simpler and faster formula based on UNIQUE.