UniMord
Active Member
- Joined
- May 6, 2002
- Messages
- 311
COUNT double counts on overlapping ranges.
For example (assuming all cells contain numbers).
Is there a practical workaround?
For just 2 ranges, we can use:
For example (assuming all cells contain numbers).
=COUNT(A1:J1, A1:J1) returns 20 instead of 10.
=COUNT(A1:B1, A1:A2) returns 4 instead of 3.
Now, I know most functions behave this way (SUM for instance), but with COUNT, we're looking for the count in all the ranges together, it shouldn't be double counting. For the record, the status bar gives the correct count.=COUNT(A1:B1, A1:A2) returns 4 instead of 3.
Is there a practical workaround?
For just 2 ranges, we can use:
=COUNT(A1:B1, A1:A2) - COUNT(A1:B1 A1:A2)
But it's downhill once we hit 3 ranges or more.