Vlookup using cell value as part of adress

vaclavvesely

New Member
Joined
Sep 24, 2019
Messages
13
Hi, is there any way how to use a cell value (Text) as a reference to a worksheet in another workbook? I need different Vlookups for specific data in rows, because they refer to another workbook with a lot of worksheets and i have names of all worksheets in one column, so I don't want to change every formula manually. Thanks

Something like:
Excel Formula:
VLOOKUP(A3,'\\Folder\[workbook.xlsm]&B3&'!$B:$D,3,FALSE)
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Does this need to work on closed workbooks?
 
Upvote 0
In that case I'm not sure it's possible.
You could possibly use the INDIRECT function (although I'm not sure if that works with UNC addresses of just mapped drives) however it does not work on closed workbooks.
 
Upvote 0
Using indirect it would be like
Excel Formula:
=VLOOKUP(A3,INDIRECT("'\\Folder\[workbook.xlsm]"&B3&"'!$B:$D"),3,FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,605
Members
449,038
Latest member
Arbind kumar

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