Blank cell criteria

A

Annette

I used this array formula in my macro to add all the cells that contain
blank in column F; however, it is not calculating ... should I use something
else?

=SUM((Sheet1!B2:B250="WARRANT")*(Sheet1!F2:F250=" ")*(Sheet1!C2:C250))

my code:

Worksheets("Sheet2").Range("b14").FormulaArray = _
"=SUM((Sheet1!B2:B250=""WARRANT"")*(Sheet1!F2:F250=""
"")*(Sheet1!C2:C250))"
 
B

Bob Phillips

That is not blanki but space. Use

=SUM((Sheet1!B2:B250="WARRANT")*(Sheet1!F2:F250="")*(Sheet1!C2:C250))


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top