Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default SUMIF Question

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

--
Cheers
Nigel




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default SUMIF Question


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

--
Greetings from New Zealand
Bill K

"Nigel" wrote in message
...
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

--
Cheers
Nigel






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default SUMIF Question

That does the trick - many thanks

--
Cheers
Nigel



"William" wrote in message
...
Hi Nigel

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

XL2003
Regards

William



"Nigel" wrote in message
...
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

--
Cheers
Nigel









  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default SUMIF Question

Hi Bill
Thanks for the tip - nice elegant solution

Greetings from the UK!!

--
Cheers
Nigel



"Bill Kuunders" wrote in message
...

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

--
Greetings from New Zealand
Bill K

"Nigel" wrote in message
...
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

--
Cheers
Nigel










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SUMIF Question

Just to add:

=SUMIF(A1:A5,"<",B1:B5)

Should be sufficient

--
Regards,
Tom Ogilvy


"Nigel" wrote in message
...
That does the trick - many thanks

--
Cheers
Nigel



"William" wrote in message
...
Hi Nigel

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

XL2003
Regards

William



"Nigel" wrote in message
...
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

--
Cheers
Nigel











  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 303
Default SUMIF Question

Of course it is
Thanks Tom
Learning each day.
Regards
Bill K

"Tom Ogilvy" wrote in message
...
Just to add:

=SUMIF(A1:A5,"<",B1:B5)

Should be sufficient

--
Regards,
Tom Ogilvy


"Nigel" wrote in message
...
That does the trick - many thanks

--
Cheers
Nigel



"William" wrote in message
...
Hi Nigel

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

XL2003
Regards

William



"Nigel" wrote in message
...
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

--
Cheers
Nigel













Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUMIF Question Mark Excel Discussion (Misc queries) 2 April 15th 09 04:28 PM
SUMIF question alice Excel Discussion (Misc queries) 2 November 24th 05 02:55 PM
SUMIF Question Minitman[_4_] Excel Programming 4 November 6th 04 10:45 PM
sumif question No Name Excel Programming 5 September 24th 04 11:02 PM
sumif question 2 Tom Ogilvy Excel Programming 0 September 24th 04 06:19 PM


All times are GMT +1. The time now is 05:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"