SOLVED

Excel VLOOKUP with Named Ranges

Copper Contributor

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.

 

 

2 Replies
best response confirmed by Nate_04 (Copper Contributor)
Solution
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.
1 best response

Accepted Solutions
best response confirmed by Nate_04 (Copper Contributor)
Solution
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.

View solution in original post