Vlookup pointing to a cell to get a tab name

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
731
Office Version
  1. 365
Platform
  1. Windows
Here's my simple VLOOKUP:
=IFERROR(VLOOKUP(C3,'R:\Patient Results\[050119.xlsx]Bob'!$E$2:$F$569,2),"")

I want to use the same file for multiple people by using a drop down in A1 to get the name of the person, which is the name of a tab in another file, to do the lookup. There's a tab in that other file for every person on the team.

So what I'd like to end up with is a VLOOKUP the works like this would if it were legal code:
=IFERROR(VLOOKUP(C3,'R:\Patient Results\[050119.xlsx]$A$1'!$E$2:$F$569,2),"")

Changing a specific name, Bob, to a cell reference, A1. That would let me replace the name in A1 with any one of a couple dozen other names and get the results I need.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Code:
[COLOR=#333333]=IFERROR(VLOOKUP(C3,INDIRECT("'R:\Patient Results\[050119.xlsx]"&$A$1"'!$E$2:$F$569",2),"")[/COLOR]
 
Upvote 0
This gives me an error. "we found a problem with this formula. Try clicking insert formula...."
 
Upvote 0
Missed an &
Code:
[COLOR=#333333]=IFERROR(VLOOKUP(C3,INDIRECT("'R:\Patient Results\[050119.xlsx]"&$A$1&"'!$E$2:$F$569",2),"")[/COLOR]
 
Upvote 0
Maybe but the parentheses don't match.
 
Upvote 0

Forum statistics

Threads
1,223,969
Messages
6,175,691
Members
452,667
Latest member
vanessavalentino83

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