Best way to update file link daily

rnamhee

New Member
Joined
Sep 2, 2015
Messages
3
I have a Master Sheet that is doing a VLOOKUP and pulling information from another sheet that I plan to download daily. The downloaded sheet is something that I will save daily in the same location and save as "VLOOKUP(.....filenameMMDDYY.xlsx...)". Every day I plan to update the formulas so that it references the most current sheet and I'm looking for the best way to go about updating it. Ideally, since the name of the referencing sheet will be the current date, I'd like to have somewhere on my master sheet that I can update the date on and have the information flow through.

Please let me know if you need more clarification:

A1: =VLOOKUP(.....cell B1 from filenameMMDDYY.xlsx...)
A2: =VLOOKUP(.....cell B2 from filenameMMDDYY.xlsx...)
A3: =VLOOKUP(.....cell B3 from filenameMMDDYY.xlsx...)
......and so on for about 5 cells down

Master Sheet: MMDDYY = Cell D1 on master sheet

If there is a better easier way to do this I'd be open to ideas.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the forum.

It seems to me function INDIRECT is what you need. Both files must be open or you'll get a #REF error in the master file until you open the Date file again. And the file named for the Date file must have the data in Sheet1 (notice no spaces).

I created a file and saved it in the same folder as the Master file. I named the file 07112015.xlsx
In the master file in cell D2 I put '07112015 (which must include an apostrophe at the start because of the leading zero).
In the master file I did this:

Excel 2012
ABCDE
19/2/201507112015b1
29/3/2015b2
39/4/2015b3
49/5/2015b4
59/6/2015b5
69/7/2015b6
79/8/2015b7

<tbody>
</tbody>
Master

Worksheet Formulas
CellFormula
A1=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E1)
A2=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E2)
A3=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E3)
A4=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E4)
A5=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E5)
A6=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E6)
A7=INDIRECT("'["&$D$1&".xlsx]Sheet1'!"&E7)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Thanks! Any way to get this to work without having the source files open?

I'm open to other methods of getting this done. The main goal is to have links update from a new sheet daily but I'd like an easy way to facilitate updating the file name (link location)
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,679
Members
449,463
Latest member
Jojomen56

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