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
 
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))
thanks but i need to refference the sheet from
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))
i need to reference the sheet name in the cell a1, but thanks for your reply
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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))
your last one works as well thanks cant mark both as solved sorry, he got there first but thank you so much
 
Upvote 0
The {1,2,3,4} forces the formula to return all 4 columns from D:G
 
Upvote 0
If you have 12 columns you can use
Excel Formula:
=INDEX(INDIRECT("'"&A2&"'!D2:O20"),MATCH(C2&"|"&D2,INDIRECT("'"&A2&"'!B2:B20")&"|"&INDIRECT("'"&A2&"'!C2:C20"),0),SEQUENCE(,12))
 
Upvote 0
If you have 12 columns you can use
Excel Formula:
=INDEX(INDIRECT("'"&A2&"'!D2:O20"),MATCH(C2&"|"&D2,INDIRECT("'"&A2&"'!B2:B20")&"|"&INDIRECT("'"&A2&"'!C2:C20"),0),SEQUENCE(,12))
thanks you so much
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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