Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2010 VLOOKUP Use cell to reference worksheet in another workbook

Status
Not open for further replies.

PWD

Technical User
Jul 12, 2002
823
GB
Good afternoon, and happy Independence Day to our friends across the water - just to show that we're not sore losers!!

I'd like to use a cell on my current worksheet (H2) as a reference to a worksheet in another open workbook. I've had a look "out there" and thought that I'd found the solution :(

Here's what works

=VLOOKUP(E2,'[Cancer PTL reporting (somerset analysis) 2017 07 02.xlsx]Lung'!$H:$I,2,0)

and I thought that what I'd found
=VLOOKUP(A4,INDIRECT("'"C1&"'!A:D"),2,0)

allows you to keep sheet names like JAN 03.

would lead to

=VLOOKUP(E2,INDIRECT('[Cancer PTL reporting (somerset analysis) 2017 07 02.xlsx]"&H2&"'!$H:$I),2,0)

Ah, this is what it should be

=VLOOKUP(E2,INDIRECT("'[Cancer PTL reporting (somerset analysis) 2017 07 02.xlsx]"&H2&"'!$H:$I"),2,0)

Many thanks,
D€$
 
Hi,

Is there a question over there, across the pond?

Your last formula looks correct to me.

However, I'd normalize your data into ONE TABLE for a better data analysis experience.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top