Need Help With Lookuop but not sure what kind of Lookup

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
74
Office Version
  1. 2016
Platform
  1. Windows
Thank you in advance for your help. I'm working with two separate excel sheets. In the first sheet the data is laid out as depicted in the first table below (Table1). My second sheet is laid out as the second table (Table2)

In Table1, Task2 Site2 = D5, Task1 Site3 = D3, Task3 Site1 = D7 and so forth

I'm looking for a formula that when put in cell B2 of Table 2 would look up both Task1 and Site1 in table1 and return the value of D1
The same formula if put in cell D3 of Table2 would look up both Task3 and site2 in Table1 and return the value of D8

Thank you


Table1

ABCD
1Site1Site2Site3
2Task1D1D2D3
3Task2D4D5D6
4Task3D7D8D9

<tbody>
</tbody>

Table 2

ABCD
1Task1Task2Task3
2Site1
3Site2
4Site3

<tbody>
</tbody>
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this in the 1st cell of the 2nd table...
=IFERROR(INDEX($B$3:$D$5,MATCH(B$10,$A$3:$A$5,0),MATCH($A11,$B$2:$D$2,0)),"Not Found")
include the sheet names as needed, and copy down and across as needed
 
Upvote 0
Hi,

Try this

=IFERROR(INDEX($B$22:$D$24,MATCH(B$29,$A$22:$A$24,0),MATCH($A30,$B$21:$D$21,0)),"")
 
Upvote 0
@ Guru008, OP's range indicates A1:D4, so, while if adjusted, the range in your suggestion - $B$22:$D$24 - would work, it could confuse a new excel user
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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