Flora Edwards
asked on
How to modify the count formula?
I have this formula
=SUMPRODUCT((1-ISERROR($M$ 2:$M$23))/ COUNTIF($M $2:$M$23,$ M$2:$M$23& ""))
it excludes the count those cell that has Errors.
I want include two more conditions that do not count if the cell is empty and do not count If the cell has text which is simply a space like this " "
=SUMPRODUCT((1-ISERROR($M$
it excludes the count those cell that has Errors.
I want include two more conditions that do not count if the cell is empty and do not count If the cell has text which is simply a space like this " "
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
=COUNT($M$2:$M$23)
If you are counting Text values and needing to use COUNTA we'd need to look at other options, but I'd use COUNTIFS instead of a SUMPRODUCT formula...
=COUNTIFS($M$2:$M$23, "<>#N/A", $M$2:$M$23, "<>#DIV/0!", $M$2:$M$23, "<>", $M$2:$M$23, "<> ")