MrExcel Publishing
Your One Stop for Excel Tips & Solutions

Need an array formula


Posted by Eric on June 13, 2001 9:45 AM

Hi,
A2:A232 has an if statement that either returns a blank or a text code (e.g."/~"), b2:b232 contains numbers ranging from 1 to 1e-7. I want to count the number of rows in which column (A) has text code and column b has a value <=.05, without adding any columns to the spreadsheet (i.e. a total at the bottom of Column (A).


Posted by IML on June 13, 2001 10:13 AM

Type in

=SUM((A1:A232<>"")*(B1:B232<=0.05))

and Control shift enter

good luck.

Posted by Eric on June 13, 2001 10:33 AM

Thanks, that's clever

I was trying to use countif in an array, like yours much better