ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sheet name in formula (https://www.excelbanter.com/excel-worksheet-functions/21193-sheet-name-formula.html)

SMullins

Sheet name in formula
 
This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


ΊΌΦέΘΛ

you can use VBA



SMullins

VBA? Most likely not

"ΒΊΒΌΓ–ΓΓˆΓ‹" wrote:

you can use VBA




Duke Carey

Have you tried using Search & Replace? Ctrl-H is the shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


SMullins

Changes formulas that I do not want changed

"Duke Carey" wrote:

Have you tried using Search & Replace? Ctrl-H is the shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


Tom Hewitt

How about, recording a macro.

Have say cell A1 as what the old file is
and cell A2 the new one.

Then record a macro that would pick up A1 and replace with A2.

then you'd just have to change A1 and A2 ecah day and run the macro.

Might work.

"SMullins" wrote:

Changes formulas that I do not want changed

"Duke Carey" wrote:

Have you tried using Search & Replace? Ctrl-H is the shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


Duke Carey

The course you'll have to follow then is this:

change your formula
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

to
=SUMPRODUCT(INDIRECT("'V:\Production Reporting Summaries\Tammy\April
05\[Production Summary.xls]"&A1&"'!$B$4"))

and then put your 4_04 value in cell A1





"SMullins" wrote:

Changes formulas that I do not want changed

"Duke Carey" wrote:

Have you tried using Search & Replace? Ctrl-H is the shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


SMullins

This formula gives me an invalid cell reference. Does the other workbook
have to be open?

"Duke Carey" wrote:

The course you'll have to follow then is this:

change your formula
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

to
=SUMPRODUCT(INDIRECT("'V:\Production Reporting Summaries\Tammy\April
05\[Production Summary.xls]"&A1&"'!$B$4"))

and then put your 4_04 value in cell A1





"SMullins" wrote:

Changes formulas that I do not want changed

"Duke Carey" wrote:

Have you tried using Search & Replace? Ctrl-H is the shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days worksheet and then go into
multiply cells and change 4_04 to the next day, which would be 4_05.

I want to be able to enter 4_05 into one cell and have it update 4_04
automatically so I am not manually changing the formula daily.


Chip Pearson

Yes, INDIRECT requires that the file be open.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"SMullins" wrote in message
...
This formula gives me an invalid cell reference. Does the
other workbook
have to be open?

"Duke Carey" wrote:

The course you'll have to follow then is this:

change your formula
='V:\Production Reporting Summaries\Tammy\April 05\[Production
Summary.xls]4_04'!$B$4

to
=SUMPRODUCT(INDIRECT("'V:\Production Reporting
Summaries\Tammy\April
05\[Production Summary.xls]"&A1&"'!$B$4"))

and then put your 4_04 value in cell A1





"SMullins" wrote:

Changes formulas that I do not want changed

"Duke Carey" wrote:

Have you tried using Search & Replace? Ctrl-H is the
shortcut key


"SMullins" wrote:

This is a formula I us daily

(example)
='V:\Production Reporting Summaries\Tammy\April
05\[Production
Summary.xls]4_04'!$B$4

each day I have to make a copy the previous days
worksheet and then go into
multiply cells and change 4_04 to the next day, which
would be 4_05.

I want to be able to enter 4_05 into one cell and have
it update 4_04
automatically so I am not manually changing the formula
daily.





All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com