A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To answer your question of what's wrong with COUNTA consider:
=COUNTA(IF(A1:A4="Bob";A1:A4))
A1:A4="Bob" evaluates to {TRUE;FALSE;FALSE;TRUE}
IF(A1:A4="Bob";A1:A4) evaluete to {"Bob";"";"";"Bob"}
COUNTA counts all nonblank entries and "" is not treated as blank here.
If the range A2:A3 were blank the above results would still be 4! However, in that case COUNTA(A1:A4) would return 2. And if fact if all the cells were blank the array formula would return 4!?
So one would be justified in saying your logic is correct but Excel work's differently.
If this answer solves your problem, please check, Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers Shane Devenshire