Extract Values from Dependent Lists based on Twin Criteria

Whitenoise

New Member
Joined
Apr 22, 2019
Messages
5
I am looking at a way to extract values based on twin criteria, preferrably using vlookup or any other method.
I have 2 constraints -
One, I can't have any VBA code in my spreadsheet
Two, I may not be able to add any additional columns in my sheet 1

Requirement: I would like to get values from Col-H in Sheet 1 into Col-F in Sheet 2

I have tried using the below method to obtain values in Col F (cell F2) in Sheet2, but unable to get the results in any scenario.

=IFERROR(VLOOKUP(Sheet2!D2&E2,Sheet1!$A$2:$H$16,8,FALSE),"")

The screenshots below give a preview of sheet 1 and sheet 2 of sample data

https://drive.google.com/drive/folders/1SVchlsEV6K27CA1D0cIw8IcFPAnbi-nb?usp=sharing
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi & welcome to MrExcel.
How about
=INDEX(Sheet1!$H$2:$H$4,MATCH(D2&E2,Sheet1!$A$2:$A$4&Sheet1!$E$2:$E$4,0))

This is an array formula & needs to be confirmed with Ctrl Shift Enter, rather than just Enter
 
Upvote 0
Do I am wrong to say that you want in sheet2 data from Sheet1 using value from Sheet2 columns D & E and seraching in sheet1 columns A & E and returning values from Sheet1 column H
It seems there is merged cells is it ?
 
Upvote 0
Index/Match does not need the data to be sorted, what you need to do is expand the ranges to match your data.
 
Upvote 0
Thanks a ton, it works.

One follow-up question, how can I remove "#N/A" from cell where {=INDEX(Sheet1!$H$2:$H$4,MATCH(D2&E2,Sheet1!$A$2:$A$4&Sheet1!$E$2:$E$4,0))} is mentioned. I would want to write

=IFERROR(INDEX(Sheet1!$H$2:$H$4,MATCH(D2&E2,Sheet1!$A$2:$A$4&Sheet1!$E$2:$E$4,0)),"") but unable to use Ctrl+Shift+Enter

 
Upvote 0
Do I am wrong to say that you want in sheet2 data from Sheet1 using value from Sheet2 columns D & E and seraching in sheet1 columns A & E and returning values from Sheet1 column H
It seems there is merged cells is it ?

You are not wrong in trying to understand the requirement. And there are merged cells.
 
Upvote 0
This is correct
=IFERROR(INDEX(Sheet1!$H$2:$H$4,MATCH(D2&E2,Sheet1!$A$2:$A$4&Sheet1!$E$2:$E$4,0)),"")
and you should still be able to confirm it with Ctrl Shift Enter.

 
Upvote 0
Glad you sorted it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

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