SUMIF Question

  • Thread starter Thread starter Nigel
  • Start date Start date
N

Nigel

Hi All
I use the SUMIF worksheet function to SUM a range conditionally, eg

SUMIF(A1:A5,"",B1:B5), which works great for summing B1:B5 if any cell in
A1:A5 is blank

I now wish to reverse the logic and sum if any cell in A1:A5 are NOT blank,
but

SUMIF(A:A5,NOT(""),B1:B5) does not work !

Please help
 
Hi Nigel

Try...
=SUMIF(A1:A5,"<>"&"",B1:B5)
--

XL2003
Regards

William
(e-mail address removed)
 
=SUMPRODUCT(--NOT(ISBLANK(A1:A5)),B1:B5)
will do the trick

Or you could take your original formula and deduct that from SUM(B1:B5)
 

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

Back
Top