SumIfs and Sum Index Range

Grimm127

Board Regular
Joined
Aug 17, 2011
Messages
132
Hi All you Excel Guru's,

I am drawing a brain fart.
The formula below is pretty self explanatory. Sum if the column identified by the match.
=SUMIFS(INDEX(Statistics!$A:$AO,0,MATCH(B$6,Statistics!$A$3:$AO$3,0)),Statistics!$A:$A,$A42)

However I want the the Sum range to be more than one column.

=SUMIFS(Sum(Statistics!$A:INDEX(Statistics!$A:$AO,0,MATCH(B$6,Statistics!$A$3:$AO$3,0)),Statistics!$A:$A,$A42)

But that doesn't seem to work. Any ideas or suggestions?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
See if this example helps (a small data sample)

Sheet Statistics
Pasta1
ABCDEFG
1
2
3NameHeader1Header2Header3Header4Header5Header6
4John102030405060
5Bob112131415161
6Anthony122232425262
7Bob132333435363
8John142434445464
9Anthony152535455565
10
Statistics


Formulas in Sheet2
Pasta1
ABCD
1NameColumnOriginal Formula
2BobHeader6124
3
4
5NameFirstColumnLastColumnNew Formula
6BobHeader2Header4192
Sheet2
Cell Formulas
RangeFormula
D2D2=SUMIFS(INDEX(Statistics!A:G,0,MATCH(B2,Statistics!A3:G3,0)),Statistics!A:A,A2)
D6D6=SUMPRODUCT(INDEX(Statistics!B4:G100,0,MATCH(B6,Statistics!B3:G3,0)):INDEX(Statistics!B4:G100,0,MATCH(C6,Statistics!B3:G3,0))*(Statistics!A4:A100=A6))


Remark: avoid references to entire columns in the NewFormula (i used the range B4:G100 - adjust to your real case)

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,213,522
Messages
6,114,112
Members
448,549
Latest member
brianhfield

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