#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default SUMIF

Hi,
I am trying to find the sum of a column based on values from another column.
For example, If I am inserting a sumif function in b5, and finding the sum of
values b1:b4. I want the function to only sum the values in b1:b4 who have a
corresponding d cell that is not blank. For instance, if b1=1, b2=2, b3=3,
b4=4 and d1=5, d2 is blank, d3=4, d4 is blank. I only want the add b1 and b3
= 4.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default SUMIF

=sumif(d1:d4,"<",b1:b4)

JBoyer wrote:

Hi,
I am trying to find the sum of a column based on values from another column.
For example, If I am inserting a sumif function in b5, and finding the sum of
values b1:b4. I want the function to only sum the values in b1:b4 who have a
corresponding d cell that is not blank. For instance, if b1=1, b2=2, b3=3,
b4=4 and d1=5, d2 is blank, d3=4, d4 is blank. I only want the add b1 and b3
= 4.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default SUMIF

When I tried this function it displayed a value of 0. Any other suggestions
would be appreciated.

"Dave Peterson" wrote:

=sumif(d1:d4,"<",b1:b4)

JBoyer wrote:

Hi,
I am trying to find the sum of a column based on values from another column.
For example, If I am inserting a sumif function in b5, and finding the sum of
values b1:b4. I want the function to only sum the values in b1:b4 who have a
corresponding d cell that is not blank. For instance, if b1=1, b2=2, b3=3,
b4=4 and d1=5, d2 is blank, d3=4, d4 is blank. I only want the add b1 and b3
= 4.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default SUMIF

And if you just use =sum(b1:b4), what do you get?

If that's 0 (and it shouldn't be), then maybe your "numbers" are text. Format
the cells as General and then retype those entries and try both formulas.

Or maybe d1:d4 are all empty???

JBoyer wrote:

When I tried this function it displayed a value of 0. Any other suggestions
would be appreciated.

"Dave Peterson" wrote:

=sumif(d1:d4,"<",b1:b4)

JBoyer wrote:

Hi,
I am trying to find the sum of a column based on values from another column.
For example, If I am inserting a sumif function in b5, and finding the sum of
values b1:b4. I want the function to only sum the values in b1:b4 who have a
corresponding d cell that is not blank. For instance, if b1=1, b2=2, b3=3,
b4=4 and d1=5, d2 is blank, d3=4, d4 is blank. I only want the add b1 and b3
= 4.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default SUMIF

Sorry for the confusion, I knew the formula should work but I didn't
understand why it wouldn't. But, yes the cells were formated as general and I
had to change them to number format.

Again, thanks for the initial help and the response to my stupidity.

"Dave Peterson" wrote:

And if you just use =sum(b1:b4), what do you get?

If that's 0 (and it shouldn't be), then maybe your "numbers" are text. Format
the cells as General and then retype those entries and try both formulas.

Or maybe d1:d4 are all empty???

JBoyer wrote:

When I tried this function it displayed a value of 0. Any other suggestions
would be appreciated.

"Dave Peterson" wrote:

=sumif(d1:d4,"<",b1:b4)

JBoyer wrote:

Hi,
I am trying to find the sum of a column based on values from another column.
For example, If I am inserting a sumif function in b5, and finding the sum of
values b1:b4. I want the function to only sum the values in b1:b4 who have a
corresponding d cell that is not blank. For instance, if b1=1, b2=2, b3=3,
b4=4 and d1=5, d2 is blank, d3=4, d4 is blank. I only want the add b1 and b3
= 4.

--

Dave Peterson


--

Dave Peterson

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 for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
sumif b166er Excel Discussion (Misc queries) 1 June 19th 06 03:40 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 01:00 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"