Index Match (or something else?) with multiple criteria (didn't see a solution in other threads)

eagerexceler

New Member
Joined
Jan 10, 2017
Messages
36
Office Version
  1. 2016
Platform
  1. Windows
Hi Y'all - I can't solve this formula I'm trying to come up with. Sorry, I'm not able to download XL2BB on my work computer.

I have two tabs, and I'm trying to pull data from my Data tab into my Summary tab based on multiple criteria. In the summary tab I'm trying to pull amounts in column F based on matching the local from cell B2, the Code from column A, and the period number in column E. My data set includes hundreds of other localities and codes, so this is just a snippet. So basically I'm trying to conditionally grab cell D3 from the Data tab and put it in cell F4 of the Summary tab. I've tried index match with multiple conditions, but I can't get it to work at all.

Thank you in advance for any help.

Summary tab:
LOCALHouston
CodeDescriptionLabNamePeriodAmount
1AADM 1Er1Ntech
1​
1AADM 1Er1Ntech
2​
1AADM 1Er1Ntech
3​
2AADM 2Er1Ntech
1​
2AADM 2Er1Ntech
2​
2AADM 2Er1Ntech
3​

Data tab:
1A1A1A2A2A2A
ContractLocalLocal Name123123
412​
8​
HOUSTON
17.28​
19.5​
25.4​
50.45​
58.6​
69.12​
412​
9​
OTHER
9.25​
12.54​
18.84​
38.21​
46.75​
51.34​

Summary.PNG


Data.PNG
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
See if this works in F4
Excel Formula:
=INDEX(Data!$C$3:$I$4,MATCH($B$1,Data!$C$3:$C$4,0),MATCH($A4,Data!$C$1:$I$1,0)+$E4-1)

Your pictures are different to your data provided, if you need to pad the summary data out to 5 characters eg 1A need to look up 0001A then try this:
Excel Formula:
=INDEX(Data!$C$3:$I$4,MATCH($B$1,Data!$C$3:$C$4,0),MATCH(REPT("0",5-LEN($A4))&A4,Data!$C$1:$I$1,0)+$E4-1)
 
Upvote 0
Solution
Hey Alex, both of your solutions work. Thank you for the help - you taught me some new things so I appreciate that, too.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,435
Members
452,326
Latest member
johnshaji

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