SUMIFS with sum range having multiple columns

dstarns

New Member
Joined
Jan 5, 2010
Messages
8
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
</tbody>[/TABLE]
We are trying to use SUMIFS with the sum range running over a range of cells. In this example our range would be C2:D16.

Code:
=SUMIFS($C$2:$D$16,$A$2:$A$16,$G3,$C$1:$D$1,H$2)

In most of the examples I find on the Internet the sum range is only one column. So I'm not sure if SUMIFS would work here, if not can someone point me in a direction to solve this problem?

Thanks for the help in advance.

Dave
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
[TABLE="width: 500"]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[/TABLE]
We are trying to use SUMIFS with the sum range running over a range of cells. In this example our range would be C2:D16.

Code:
=SUMIFS($C$2:$D$16,$A$2:$A$16,$G3,$C$1:$D$1,H$2)

In most of the examples I find on the Internet the sum range is only one column. So I'm not sure if SUMIFS would work here, if not can someone point me in a direction to solve this problem?

Thanks for the help in advance.

Dave

Excel Workbook
ABCDEFGH
1258bb
2b
3a
4a123123
5
6
7
8a12
Sheet1
 
Upvote 0
That worked like a charm... Took a bit to figure out what the formula does but thanks again for your quick response.

This community rocks.

Dave
 
Upvote 0
That worked like a charm... Took a bit to figure out what the formula does but thanks again for your quick response.

This community rocks.

Dave

You are welcome.
Array formula are very powerful as you.
Just google it to find out more.
 
Upvote 0
You are welcome.
Array formula are very powerful as you.
Just google it to find out more.


Would anyone know why I am getting the Value# when trying this one? It looks like a really helpful formula but can't get it to work.

Many thanks
 
Upvote 0
Hi,

Since this is an Array formula, Did you enter your formula by Control + Shift + Enter?

If you did, and it doesn't work for you, since this post is over three years old, you might want to start your own thread and post a detailed description of your data and what you want to achieve.
 
Last edited:
Upvote 0
Hi,

I'm trying to sum up the values for teh same name in different columns, but I don't find out the right formula. Pivot table helps me only column by column. Could anyone help me with a solutin?
Thank you!

Example


[TABLE="width: 288"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]FEDERICA[/TD]
[TD="align: right"]3[/TD]
[TD] CRISTIAN[/TD]
[TD="align: right"]4[/TD]
[TD] CATHERINE[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]CRISTIAN[/TD]
[TD="align: right"]3[/TD]
[TD] LAURENT[/TD]
[TD="align: right"]4[/TD]
[TD] PAULE[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]CRISTIAN[/TD]
[TD="align: right"]3[/TD]
[TD] CRISTIAN[/TD]
[TD="align: right"]4[/TD]
[TD] CRISTIAN[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]CRISTIAN[/TD]
[TD="align: right"]3[/TD]
[TD] MONIQUE[/TD]
[TD="align: right"]4[/TD]
[TD] CRISTIAN[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]FEDERICA[/TD]
[TD="align: right"]3[/TD]
[TD] MONIQUE[/TD]
[TD="align: right"]4[/TD]
[TD] FLORENCE[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]MONIQUE[/TD]
[TD="align: right"]3,5[/TD]
[TD] MONIQUE[/TD]
[TD="align: right"]4[/TD]
[TD] FEDERICA[/TD]
[TD="align: right"]4[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
I have a SUMIFS formula that is returning a #SPILL! error. The formula is below:

=SUMIFS('enrollment'!$B$3:$B$68,'mkt'!!$AG7,'enrollment'!$J$3:$J$68,'enrollment'!$G$3:$G$68,'mkt'!!$AG1)

enrollment $B:$B is looking at Market City (all markets)
mtk AG7: specific market (Akron)
enrollment $J:$J is looking at enrollment
enrollment $G:$G Existing contract Yes/No
mtk AG1: Yes

I need help to get the formula not to SPILL
 
Upvote 0
You're formula makes no sense, as you seem to have the arguments in the wrong order.
However if you need help on this I would suggest that you start a new thread, rather than posting to a thread that is almost 6 years old.
I would also suggest that you post some sample data using the Xl2BB add-in
 
Upvote 0

Forum statistics

Threads
1,222,115
Messages
6,164,026
Members
451,867
Latest member
csktwyr

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top