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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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:
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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