Forum Discussion
Nate_04
Apr 16, 2019Copper Contributor
Excel VLOOKUP with Named Ranges
This is my formula:
=VLOOKUP(A1,Group1,3,FALSE)
If I write it out like this it works prefectly. But I want a dropdown from another cell where I can choose a group (Group1, Group2, Group3 etc) and then the VLOOKUP function will have whatever group was selected from the dropdown. These groups are named ranges that cover multiple rows and columns.
I've tried creating a list using data validation but it seems to have an issue that there are multiple rows/columns. Any help would be appreciated.
- You can include CHOOSE in your VLOOKUP formula this way:
=VLOOKUP(A1,
CHOOSE(MATCH(B1,{Group1,Group2,Group3},1),
Group1,Group2,Group3),
3,0)
The foregoing formula is non-volatile. An alternative would be the volatile INDIRECT, as follows:
=VLOOKUP(A1,
INDIRECT(B1),
3,0)
The choice is yours.
2 Replies
Sort By
- datphamictCopper Contributor
Nate_04 i can hlep you hàm vlookup trong excel
- TwifooSilver ContributorYou can include CHOOSE in your VLOOKUP formula this way:
=VLOOKUP(A1,
CHOOSE(MATCH(B1,{Group1,Group2,Group3},1),
Group1,Group2,Group3),
3,0)
The foregoing formula is non-volatile. An alternative would be the volatile INDIRECT, as follows:
=VLOOKUP(A1,
INDIRECT(B1),
3,0)
The choice is yours.