Lookup 2 vertical and 1 horizontal

kashyap

Board Regular
Joined
Mar 28, 2009
Messages
173
Hi, I have data's(All text) from Column A to Column G and I need a formula which lookup ColA, ColB, Row1 and gives output

ColA ColB ColC ColD ColE ColF ColG
Scenario Op NC FO FI CP Past
What is.. ABC kjha ert sd fgh fg
What is.. XYZ qwer ert df fgh aw
What is.. MNO er rt ter er
What is.. EFG ert er ghj ytry
You have.. ABC
You have.. XYZ
You have.. MNO
You have.. EFG
Where.. ABC
Where.. XYZ
Where.. MNO
Where.. EFG
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Actually user can select Scenario & Op which I want to lookup vertically which is in Column A & B and user can also select "NC, FO, FI, CP, Past" as well which is need to lookup horizontal which is in Column C to G.

I tried with index and match functions, but here i can do only 2 lookup and not the 3rd one..
 
Upvote 0
Actually user can select Scenario & Op which I want to lookup vertically which is in Column A & B and user can also select "NC, FO, FI, CP, Past" as well which is need to lookup horizontal which is in Column C to G.

I tried with index and match functions, but here i can do only 2 lookup and not the 3rd one..

Control+shift+enter, not just enter...
Code:
=INDEX($C$2:$G$100,
    MATCH(1,IF($A$2:$A$100=Scenario,IF($B$2:$B$100=Op,1)),0),
    MATCH(Header,$C$1:$G$1,0))
 
Upvote 0
Hi Aladin, This is not giving me the desired output.. I tried with the below formula as well, but not resired result

=INDEX(PRX!A1:H111,MATCH(1,IF(PRX!A2:A111=Reference!J9,IF(PRX!C2:C111=Reference!F5,1)),0),MATCH(Reference!K6,PRX!A1:H1,0))
Control+shift+enter

I need to index A:H
match J9 with A:A
match F5 with C:C
match H1 with A1:H1
 
Upvote 0
Hi Aladin, This is not giving me the desired output.. I tried with the below formula as well, but not resired result

=INDEX(PRX!A1:H111,MATCH(1,IF(PRX!A2:A111=Reference!J9,IF(PRX!C2:C111=Reference!F5,1)),0),MATCH(Reference!K6,PRX!A1:H1,0))
Control+shift+enter

I need to index A:H
match J9 with A:A
match F5 with C:C
match H1 with A1:H1

The info is still not complete... I'm trying to guess the data area, that is, correct ranges...
Code:
=INDEX(PRX!$D$2:$H$111,
   MATCH(1,IF(PRX!$A$2:$A$111=Reference!J9,
                IF(PRX!$C$2:$C$111=Reference!F5,1)),0),
   MATCH(Reference!K6,PRX!$D$1:$H$1,0))
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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