Link to home
Start Free TrialLog in
Avatar of Frank .S
Frank .SFlag for Australia

asked on

Count Formula_3

hi experts when using this formula in a row range of cells instead of a column range of cells, it produces a #N/A error?
 =COUNTA(H22:O22)-SUMPRODUCT((H22:O22={"y","-"})*1)

can you see any issues with the formula?
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

quick fix would be:

=COUNTA(H22:O22)-(SUMPRODUCT((H22:O22="y")*1) + SUMPRODUCT((H22:O22="-")*1))

Open in new window


or:

=COUNTA(H22:O22)-(COUNTIF(H22:O22,"y")+COUNTIF(H22:O22,"-"))

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial