VLOOKUP INDIRECT FROM SHEET, USING 2 criterias

arniebun

New Member
Joined
Jun 11, 2020
Messages
43
Office Version
  1. 365
Platform
  1. Windows
HI i WOULD LIKE TO VLOOKUP FROM A DIFFRENT SHEET USING 2 VALUES TO LOOKUP EXAMPLE ATTACHED.

I WANT TO LOOK UP COLUM C & B FROM SHEET2 AND POPULATE E,F,G,H, USING INDIRECT TO LOOK UP SHEET IN COLUME A
1Untitled.png
2Untitled.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Book1
ABCDEFGH
1Sheet2adamdogcv11234
2Sheet2adambonecv18678
3Sheet2adamtreecv15489
4Sheet2adamdogcv24789
5Sheet2adambonecv25678
6Sheet2adamtreecv23498
Sheet1
Cell Formulas
RangeFormula
E1:H6E1=INDEX(Sheet2!D$1:D$6,MATCH(1,($C1=Sheet2!$B$1:$B$6)*($D1=Sheet2!$C$1:$C$6),0))
 
Upvote 0
A bit unclear to me, but I guess, so:

Mappe1
ABCDEFG
1DOGCV11234
2BONECV18678
3TREECV15489
4DOGCV24789
5BONECV25678
6TREECV23498
sheet1
Cell Formulas
RangeFormula
D1:D6D1=LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$D$1:$D$6))
E1:E6E1=LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$E$1:$E$6))
F1:F6F1=LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$F$1:$F$6))
G1:G6G1=LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$G$1:$G$6))
 
Upvote 0
How about
Excel Formula:
=INDEX(INDIRECT("'"&A2&"'!D2:G20"),MATCH(C2&"|"&D2,INDIRECT("'"&A2&"'!B2:B20")&"|"&INDIRECT("'"&A2&"'!C2:C20"),0),{1,2,3,4})
 
Upvote 0
Solution
Can't I do a VLOOKUP based on values in column C & D to both match and then reference the other sheet based on the sheet name in a1? like a vlookup based on 2 values, but referencing sheet name in column A
 
Upvote 0
=VLOOKUP(b1&c1,INDIRECT("'"&a1&"'!"&"b2:g6")2,FALSE) something like this but this doesn't seem to work?
 
Upvote 0
try this

Excel Formula:
=INDEX(Sheet2!D$1:D$6,MATCH(1,($C1=INDIRECT("'"&$A1&"'!"&"$B$1:$B$6"))*($D1=INDIRECT("'"&$A1&"'!"&"$C$1:$C$6")),0))
 
Upvote 0
try this

Excel Formula:
=INDEX(Sheet2!D$1:D$6,MATCH(1,($C1=INDIRECT("'"&$A1&"'!"&"$B$1:$B$6"))*($D1=INDIRECT("'"&$A1&"'!"&"$C$1:$C$6")),0))
er sorry, missed one of the sheet refrences

Excel Formula:
=INDEX(INDIRECT("'"&$A1&"'!"&"$d$1:$d$6"),MATCH(1,($C1=INDIRECT("'"&$A1&"'!"&"$B$1:$B$6"))*($D1=INDIRECT("'"&$A1&"'!"&"$C$1:$C$6")),0))
 
Upvote 0
Can't I do a VLOOKUP based on values in column C & D to both match and then reference the other sheet based on the sheet name in a1? like a vlookup based on 2 values, but referencing sheet name in column A
Did you try the formula I suggested in post#4? It should do exactly what you asked for.
 
Upvote 0
How about
Excel Formula:
=INDEX(INDIRECT("'"&A2&"'!D2:G20"),MATCH(C2&"|"&D2,INDIRECT("'"&A2&"'!B2:B20")&"|"&INDIRECT("'"&A2&"'!C2:C20"),0),{1,2,3,4})

the eample is a dummy but i can't seem to get it to work on the real one which i can't share because it has work sensative data but if i build my sheet around your formular it works, i will play around with it and see if i can work it out. question the 1234, moves the refrence by 1 when i use 2345, is that how i move the formular to the right to capture more data?
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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