Hi!
That's exactly what it does.
If a cell is blank, then:
A1:A20000<>"" will return FALSE in that cells position in the array. Then:
COUNTIF(A1:A20000,A1:A20000) will return 0 for that empty cell. Then:
FALSE/0 will return #DIV/0!
So, the empty text string is used so that:
A1:A20000<>"" will return TRUE, then:
TRUE/0 will return 0.
To see how this formula works, try this in a small test range:
Put some random entries in A1:A5.
In B1 enter this formula and copy down to B5:
=A1<>""
In C1 enter this formula and copy down to C5:
=COUNTIF(A$1:A$5,A1&"")
In D1 enter this formula and copy down to D5:
=B1/C1
And finally, enter this formula in E1:
=SUM(D1
5)
Try experimenting by putting dupes in A1:A5. Then try removing the empty
string from the Countif formulas and delete some of the entries in A1:A5.
See what happens!
Biff