Returning/Sum multiple values using index + match array formula

Meth0dman27

New Member
Joined
May 6, 2018
Messages
5
Hi everyone,

Currently am using an array index + match formula to return a value based on 2 criteria:

{=IFERROR(INDEX(Sheet1!$F$2:$J$1572,MATCH(1,(Sheet1!$F$2:$F$1572=$D1485)*(Sheet1!$G$2:$G$1572=L$1),0),5)*$F1485," ")}

This seems to have worked for me so far. Column F in sheet 1 is the recipe code, column G is the airline, column J is the qty that I want the value(s) of

The problem I run into is when there are multiple values that match both criteria. For example:

ABCDEFGHIJ
2BF0001XX10
2BF0001XX20
2BF0001XX30
2BF0002XZ50

<tbody>
</tbody>

Using my formula, this would only result in "10" being returned on my next sheet, because that is the first value it will grab. However, I need somehow to find a way to add those 3 values up so that my formula will total 60

Anyone have any ideas? My only other work around is to take my data set on Sheet1 and just use a pivot table to sum up the codes first, then using my index match to that newly created data set, however if possible I'd like to skip that step.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,214,908
Messages
6,122,186
Members
449,071
Latest member
cdnMech

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