Archive of Mr Excel Message Board


Back to Dates in Excel archive index
Back to archive home

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).

Re: Need an array formula

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.


Thanks, that's clever

Posted by Eric on June 13, 2001 10:33 AM
I was trying to use countif in an array, like yours much better


This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.