Sumif with multiple criteria

MayerSt77

New Member
Joined
Jan 15, 2009
Messages
4
Hi all

I've got a problem with a SUMIF function and cannot find the solution on my own - looking through the forum didn't help either, the problems are similar but still not the same!

Following formula should return a sum in a column (which is defined by the value in A1). However I want it to return the corresponding value in all the rows with a 10, 11 or 12, not just for e.g. "10".

The formula that "works" looks like this:
=SUMIF('Sheet1'!$I$9:$I$44,10,INDEX('Sheet1'!$AT$9:$BX$44,0,MATCH($A$1,'Sheet1'!$AT$7:$BX$7,0)))

What I want it to do is however this (and more elegantly than just copying the formula 3 times and just changing the criteria each time):

=SUMIF('Sheet1'!$I$9:$I$44,{10&11&12},INDEX('Sheet1'!$AT$9:$BX$44,0,MATCH($A$1,'Sheet1'!$AT$7:$BX$7,0)))

Any ideas?

Many thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Just a quickie - have a look at SUMPRODUCT - great for multiple critera counts/sums like yours.
 
Upvote 0
Hi,

=SUM(SUMIF('Sheet1'!$I$9:$I$44,{10,11,12},INDEX('Sheet1'!$AT$9:$BX$44,0,MATCH($A$1,'Sheet1'!$AT$7:$BX$7,0))))

HTH
 
Upvote 0

Forum statistics

Threads
1,223,832
Messages
6,174,905
Members
452,590
Latest member
CraiginColorado

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