Sumif Array with Index

DEHA11

New Member
Joined
Jun 25, 2018
Messages
15
I have two sheets in the same workbook. One has "Data" and the other is a "Summary".

For the sake of simplicity, lets assume the "Data" sheet looks like this:

ABCD
1JANFEBMAR
2Purchase100.00150.00225.00
3Insurance500.00500.00500.00
4Ads1,000.00750.00250.00
5Ads1,500.00500.00250.00
6Supply500.00425.00350.00
7Purchase250.00300.00550.00
8Insurance150.00150.0075.00
9Insurance75.0075.0075.00
10Supply150.00250.00300.00
11Purchase125.00225.00250.00

<tbody>
</tbody>

I'm trying to get the "Summary" sheet to update with the corresponding summed values for each month, like this:

ABCD
1JANFEBMAR
2Ads2,500.00
3Insurance725.00
4Purchase475.00
5Supply650.00

<tbody>
</tbody>

I started with =INDEX(Data!A1:D11,MATCH('Summary'!A2,Data!A2:A11,0),Match('Summary'!B1,Data!B1:D1,0))

but, of course, this only returns the first value with the matching data rather than summing all of the "matching" entries.

I changed my formula to a =SUM(IF(.... {ARRAY} and I tried a =SUM(INDEX(... formula, but neither are returning the intended result, if any.


I'd really appreciate assistance with this.

TY!!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Re: Help w/ Sumif Array w/ Index

I was able to get this to work correctly. I must have had a cell referenced incorrectly which resulted in the "0" indicating it was finding the intended data.

My formula "=SUMIFS(INDEX(Data!$G:$AN,0,MATCH(J$3,INDEX(Data!$G:$AN,1,0),0)),Data!$A:$A,$B17)"

Thanks for the example, it helped a great deal!
 
Upvote 0
Re: Help w/ Sumif Array w/ Index

I was able to get this to work correctly. I must have had a cell referenced incorrectly which resulted in the "0" indicating it was finding the intended data.

My formula "=SUMIFS(INDEX(Data!$G:$AN,0,MATCH(J$3,INDEX(Data!$G:$AN,1,0),0)),Data!$A:$A,$B17)"

Thanks for the example, it helped a great deal!

Glad to help.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

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