Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change formula file reference by changing value in cell

I have a workbook that has seven tabs for the days of the week and each sheet
is identical except for the date in A1. I have a number of cells on each
sheet that are linked to another workbook to pull inventory information from
it. File name example Inventory MM-DD-YY.xls Right now, in order to update
the sheet on a weekly basis, I use find and replace to search for all
instances of last weekending date and replace it with the current weekending
date. What can I do to simply enter the new weekending date in a cell and all
the formulas will change automatically?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Change formula file reference by changing value in cell

If you're entering the week-ending date in each cell, you can enter it
in one cell and have the others refer to the first cell.

Say you have your week-ending date in cell A1 on a sheet called Data.
Change that cell. All other cells on the same sheet that need to show
the same date would have the formula:

=A1

All cells on other sheets needing to show that date would have the
formula:

=Data!A1

So when you change A1 on the Data sheet, all the other week-ending
dates change as well.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Change formula file reference by changing value in cell

I'm not sure just what is in your formulae. But since part if it is
"Inventory xx-xx-xx.xls", where xx-xx-xx is the previous week ending
date, I would try this:

Format your master week ending date cell as Text (I'll assume it's A1),
and enter your week ending date in the proper format. Say, 01-14-06 as
an example.

In each cell that needs the week ending date changed, modify the
portion of the formula that names the inventory file from, say,
"Inventory 01-07-06.xls" (or whatever it is) to this:

"Inventory "&A1&".xls" (Note the space after the word "Inventory")

The result would then be "Inventory 01-14-06.xls".

You're keeping the parts of the file name that don't change and
changing just the part that does.

For that matter, you could put the entire file name in A1 and refer to
that from the other cells, but entering just the date is easier and
less prone to error.

(By the way, I had posted an answer earlier before realizing that it
was exactly NOT what you needed. So I deleted it but had no time to
post again until just now.)

Hope this helps.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy an exact formula without changing cell reference Vidal Excel Worksheet Functions 1 September 5th 09 09:48 AM
Change of File name within a cell reference Zuzana Excel Discussion (Misc queries) 3 November 30th 05 02:38 PM
How to change reference to other worksheet by changing one cell? Ms.Vahl Excel Worksheet Functions 2 November 10th 05 06:56 AM
A cell reference in a formula changing knemitz Excel Worksheet Functions 1 February 28th 05 06:10 PM
HOW DO I COPY FORMULA WITHOUT CHANGING CELL REFERENCE anantth Excel Discussion (Misc queries) 4 February 6th 05 12:25 PM


All times are GMT +1. The time now is 03:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"