Vlookup - Table array from a text string link

Neilc78

New Member
Joined
Jul 1, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all. Hope you can help me.

I want to use a vlookup function to search in a number of different files which are saved in folders by month & date. So what I am trying to do is have the following

Cell A1 - Month
Cell A2 - Date

I have Cell A3 = "C:\Finance\"&A1&"\["&A2&"]\Waste'!$B$8:$CO$112" (where waste is the tab in the file and B8:CO112 is the range in the file

so Cell A3 shows = C:\Finance\July\[07.01.2020.xlsm]\Waste'!$B$8:$CO$112

The next thing is I want to use Vlookup to search in that file for a value in Cell B1. So this is where it goes wrong for me.

I was thinking Vlookup(B1, A3, 2, False) but how do I get the vlookup function to look at A3 as a link to another cell as when I do it this way It doesnt work. Any help appreciated.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi & welcome to MrExcel.
Try
Vlookup(B1, INDIRECT(A3), 2, False)
 
Upvote 0
The file would have to be open for INDIRECT to work... ;)
 
Upvote 0
Ah, that would be a problem then. Any other ways to do this?
 
Upvote 0
You'd have to use code, or just use the 'edit links' dialog to change the source file when needed.
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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