I need a master work book automatically reference a new workbook each week.

namgone

New Member
Joined
Sep 15, 2014
Messages
2

Each week a new workbook is created for deliveries.
I want to create a master workbook that links information from this week’s delivery’s workbook.
I was planning to simply name the delivery work books based on the week number.
Then in the masterwork book to link the information based on this week’s week number..

So for example..
Cell A1 knows the date =TODAY()
Cell A2 generates the week number =WEEKNUM(A1,2)
Cell A3 link a cell in a different work book =[38.xlsx]Sheet1!$E$4
Is there a way to get the 38 to come from cell A2?
Or am I going about this wrong, and is there a better way?

Any help would be great
Thanks
Steve
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Arithos

Well-known Member
Joined
Aug 14, 2014
Messages
598
Each week a new workbook is created for deliveries.
I want to create a master workbook that links information from this week’s delivery’s workbook.
I was planning to simply name the delivery work books based on the week number.
Then in the masterwork book to link the information based on this week’s week number..

So for example..
Cell A1 knows the date =TODAY()
Cell A2 generates the week number =WEEKNUM(A1,2)
Cell A3 link a cell in a different work book =[38.xlsx]Sheet1!$E$4
Is there a way to get the 38 to come from cell A2?
Or am I going about this wrong, and is there a better way?

Any help would be great
Thanks
Steve

You should be able to do it like this then, only solution I see off the top of my head.

=[ & A2 & .xlsx]Sheet1!$E$4

Works in the same way as the "CONCATENATE()" formula. You might need some " " inthere somewhere. Try it out and let me know :)

PS, you can combine aswell: =WEEKNUM(TODAY();2), and from there =WEEKNUM(TODAY();2)&".xlsx"

and then =[WEEKNUM(TODAY();2)&".xlsx"]Sheet1!.. etc
 
Last edited:

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,713
Office Version
  1. 365
Platform
  1. Windows
Hi

Try:

=INDIRECT("[" &WEEKNUM(TODAY(),2)& ".xlsx]Sheet1!$E$4")
 

GreasySpot

New Member
Joined
Feb 1, 2013
Messages
48
Just a word of caution as I have done something similar to what you are try, I think. Not all functions work when the file you try to "pull" data from is not open. You should test this before you get too far along, unless of course it's not a problem for you to have multiple files open. There is an excel addon called morefunc that includes a function called indirect.ext that will pull data from closed files. It is not elegant as you have to include full paths for files which can get rather long, but it will work. You can search for the "morefunc", which is what I use, or the "pull" function is another you can try.

Hope this helps
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,898
Messages
5,834,295
Members
430,274
Latest member
TME1993

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
Top