Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Kevin B
 
Posts: n/a
Default SUMIF with multi-column sum_range

When using SUMIF, is the [sum_range] restricted to values in a single column?
To explain my question I have the following data:

ADD LIST A LIST B
Y 120 0
85 217
Y 0 50
Y 40 92

When I insert the formula "=SUMIF($A$2:$A$5,"Y",$B$2:$C$5)" I am getting the
value 160 because the sum_range of $B$2:$C$5 is returning only the sum of
values in column B. What I would like is to see a value of 302.

Is it possible for the [sum_range] to be a range across multiple contiguous
columns?

Thanks in advance
  #3   Report Post  
Kevin B
 
Posts: n/a
Default

Myrna

Thank you, the SUMPRODUCT solution is perfect.



"Myrna Larson" wrote:

You said it doesn't work, so evidently the answer to your question is NO.

You can use 2 SUMIF FORMULAs, i.e.

=SUMIF($A$2:$A$5,"Y",$B$2:$B$5)+SUMIF($A$2:$A$5,"Y ",$C$2:$C$5)

or

=SUMPRODUCT(($A$2:$A$5="Y")*($B$2:$C$5))

On Tue, 16 Nov 2004 17:23:02 -0800, "Kevin B" <Kevin
wrote:

When using SUMIF, is the [sum_range] restricted to values in a single column?
To explain my question I have the following data:

ADD LIST A LIST B
Y 120 0
85 217
Y 0 50
Y 40 92

When I insert the formula "=SUMIF($A$2:$A$5,"Y",$B$2:$C$5)" I am getting the
value 160 because the sum_range of $B$2:$C$5 is returning only the sum of
values in column B. What I would like is to see a value of 302.

Is it possible for the [sum_range] to be a range across multiple contiguous
columns?

Thanks in advance



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
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM
how to fit my column unmoved eventhough i scroll down? Zxing New Users to Excel 1 November 28th 04 06:28 AM
Copying the contents of a column into a chart Richard Excel Worksheet Functions 1 November 16th 04 02:39 PM
How to calculate the data in excel 2002 including only the last 9. TylerMaricich Excel Worksheet Functions 6 November 8th 04 07:27 AM
How Do I created a nested sumif - if this column has this and thi. Gita Mooney Excel Worksheet Functions 5 November 1st 04 04:18 PM


All times are GMT +1. The time now is 08:21 PM.

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

About Us

"It's about Microsoft Excel"