Lookup value in table with 2 variables/criteria

RetroMe

New Member
Joined
Oct 2, 2009
Messages
48
I have two tables where one table will populate the data into the other table based on the section and item number I have defined. As per the below image the table in yellow will be populated by the table in white. For example D2 needs to show the value from D48 as the 'Section' and 'Item' numbers match (Section 2, Item 1). Another example M2 would match with M48. Any help would be greatly appreciated and I hope I have explained well enough. Many thanks.


uhAM9Dl
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You can use multi-value VLOOKUP trick:


Book1
BCDEFGHIJKLMNO
1SectionItem123456789101112
221#N/A0.375%0.375%0.375%0.750%0.750%0.750%1.500%1.500%1.500%1.500%1.500%
333#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
4230.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%
532#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
631#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
7#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
831#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
922300.000%1.500%1.500%1.500%2.500%2.500%2.500%3.000%3.000%3.000%3.000%3.000%
1035#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1132#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1231#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1334#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1431#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1534#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1631#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
17#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
18#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
1937#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
2038#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
2139#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
2237#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A#N/A
47SectionItem123456789101112
4821#N/A0.375%0.375%0.375%0.750%0.750%0.750%1.500%1.500%1.500%1.500%1.500%
4922300.000%1.500%1.500%1.500%2.500%2.500%2.500%3.000%3.000%3.000%3.000%3.000%
50230.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%0.500%
Sheet1
Cell Formulas
RangeFormula
D2{=VLOOKUP($B2&"|"&$C2,CHOOSE({1,2},$B$48:$B$50&"|"&$C$48:$C$50,D$48:D$50),2,0)}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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