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

#### namgone

##### New Member

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?

Any help would be great
Thanks
Steve

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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?

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:
Hi

Try:

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

Great thanks guys that worked

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

Replies
1
Views
117
Replies
10
Views
290
Replies
11
Views
353
Replies
4
Views
252
Replies
0
Views
234

1,203,140
Messages
6,053,729
Members
444,681
Latest member

### 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.

### Which adblocker are you using?

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

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