counting unique strings

S

Sparky Mark

I'm having trouble with a formula that will allow me to count the number of
unique strings in a range, however it needs to disregard any blanks in that
range. In the range g4:g1000, there are only a dozen or so values, but I'm
steadily entering the data.

In the MS Knowledgebase (article 268001), it gives this formula.

=SUM(IF(FREQUENCY(IF(LEN(G4:G1000)>0,MATCH(G4:G1000,G4:G1000,0),""),
IF(LEN(G4:G1000)>0,MATCH(G4:G1000,G4:G1000,0),""))>0,1))

However, all that's coming up is "#VALUE!". Why does this not work?
 
M

Max

Think its an array formula which needs to be array-entered,
viz.: press CTRL+SHIFT+ENTER, instead of just pressing ENTER
 
S

Sparky Mark

Max said:
Think its an array formula which needs to be array-entered,
viz.: press CTRL+SHIFT+ENTER, instead of just pressing ENTER

Excellent, nice one, cheers for that.
 
Top