Excel External references

cchristy

New Member
Joined
Feb 24, 2011
Messages
13
Hi,

I am trying to create a formula that will update itself based on the month.

What i am doing is extracting data from a spreadsheet based on the current month.

i.e. In July, the formula will do a HLOOKUP on a spreadsheet called 2011-07.xlsx. In August, i would like this to point to 2011-08.xslx.

As i am using the reference >100 times, i would like to avoid having to update them all individually and was wondering if part of the file name can be read from a cell?

If not, is there any easier ways to doig this. I am not particularly fond of doing multiple if statements as enentually, i will need to redo the sheet again after several months.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
What do you mean, "update them all individually"? If you click the Office Icon, choose Prepare / Edit Links, you point to the current file ( 2011-07.xlsx ), click the Change Source button, select the new file ( 2011-08.xslx ), and that's it, surely?
 
Upvote 0
Not sure of a way to change the formulas as the month changes but could you not just highlight the column the formulas are located in and do a find and replace on the particular area of the formula you wish to change (ie change "- 07.xls" to "- 08.xls")? This would change all of your formulas in a matter of seconds...

:)
 
Upvote 0
What do you mean, "update them all individually"? If you click the Office Icon, choose Prepare / Edit Links, you point to the current file ( 2011-07.xlsx ), click the Change Source button, select the new file ( 2011-08.xslx ), and that's it, surely?

Didnt think you could do that.

That works. Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,847
Members
452,948
Latest member
UsmanAli786

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