Counting # of cells containing an apostrophe
Try this:
=SUMPRODUCT(--(LEFT(A1:A10)="'"))
After the = is a double quote ", an apostrophe ' (or single quote) then
another double quote ".
Or:
=SUMPRODUCT(--(LEFT(A1:A10)=CHAR(39)))
Biff
"Bob" wrote in message
...
Is there a way to count the total number of cells in a worksheet that
contain
an apostrophe as the first character? I've tried using COUNTIF and
SUMPRODUCT, but to no avail. Any help would be greatly appreciated.
Thanks,
Bob
|