count number unique in excel column code example Example: excel count unique dates =COUNT(UNIQUE(B5:B14))