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)
 
Back
Top