Array enter =SUM((A1:A6="YES")*(B1:B6="YES"))
ie enter as Ctrl + Shft + Enter
See mrexcel tip on CSE formulas
Ivan
I tried that array formula and it returns 0 for the result. Any other suggestions?
Thanks,
Stu
Is your formula bracketed by curly braces, {}, as
show below?
{=SUM((A1:A6="YES")*(B1:B6="YES"))}
Yes, I used Ctlr, Shift, Enter to enter the formula and got the curly braces.
Stu
Is your formula bracketed by curly braces, {}, as
Make sure that you don't have "YES " in columns
A:B. A quick way to make sure would be to
select A1:A6 and choose the Data | Text to Columns...
menu command, click the "Fixed width" radio button
and then press [ Finish ]. Do the same for B1:B6.
Does the formula work now? Yes, I used Ctlr, Shift, Enter to enter the formula and got the curly braces. Stu
Thanks! That worked.
Stu
Make sure that you don't have "YES " in columns