VLOOKUP from a Matrix Table but matching multiple columns.

BOB12345

New Member
Joined
Aug 7, 2018
Messages
7
Hi,

I have a request if anyone can help.

In 1 Worksheet (WorksheetA) we have a large matrix of data where each cell is being be calculated using large formulae.

Similar to the example below but a lot more data:


ABCDE
12021222324
22526272829
33031323334
43536373839
54041424344

<tbody>
</tbody>

In a separate worksheet (WorksheetB) I am trying to extract data from the matrix however the data being asked to be extracted could change. And I have to lookup and match values from 2 columns. similar to table below.

ProductSectionDataShould Return in Data Col
A1?20
A
2?25
B3?31
B2?26
C4?37
C2?27

<tbody>
</tbody>

So by looking up the Product and looking up the section in WorksheetB and matching it to the matrix in WorksheetA.

I know it can be done but am having a mind blank, any help would be so appreciated.

Many Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try this in your data column on your 2nd sheet.
Code:
=INDEX(Sheet5!$A:$F,MATCH($B2,Sheet5!$A:$A,0),MATCH($A2,Sheet5!$1:$1,0))

Change the "Sheet5" references to whatever your sheet 1 is called. This also assumes you have the labels of 1,2,3,4,5 and A,B,C,etc. on the 1st sheet.
 
Upvote 0
Hi, phil's method should work, but here is another method that should work that uses the same assumption as phil's that the labels 1, 2, 3, etc. and A, B, C, etc. are on the 1st sheet in separate cells.

=INDIRECT(Sheet5!A1 & Sheet5!B1)
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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