Sum results from index match array formula

CONORF

New Member
Joined
Dec 30, 2014
Messages
18
Office Version
  1. 365
Hello. I am hoping someone can help me. I have spent many hours trying to get a solution. I have tried sum product, sumifs, etc with no luck. I think my problem might be the way I am ordering the data but I'm not sure. The index match array works wonderfully to look up this weird situation however I cannot figure out a way to get it to sum all of the results as I have multiple locations that belong to the same group that I want to sum. I am looking up on a separate sheet the two rows which are location number and type and the column is the month. The lookup to type is not on the same row as the location number. Below is the formula I am using. Any help would be greatly appreciated.

=INDEX('Sheet1'!$B$4:$f$50,MATCH($A8&$D9,'Sheet1!$A$4:$A$50&'Sheet1'!$C$4:$C$50,0),MATCH(Z$3,'Sheet1'!$B$4:$f$4,0))



'Sheet1'!$B$4:$f$50: This is the data set that I want it to find the results and sum
$A8: this is the location number
$D9: this is the data type (revenue per business day)
'Sheet1!$A$4:$A$50: houses the location number on the other sheet
'Sheet1'!$C$4:$C$50: houses the data type description on the other sheet
Z$3: the month I am looking for (column)
'Sheet1'!$B$4:$f$4: houses the month I am looking for on the other sheet
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Does this work for you?

=SUMIFS(INDEX('Sheet1'!$B$4:$F$50,0,MATCH(Z$3,'Sheet1'!$B$4:$F$4,0)),'Sheet1!$A$4:$A$50,$A8,'Sheet1'!$C$4:$C$50,$D9)
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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