Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 471
Default How to Change Reference

I want this formula to auto-update the month name (Tab):

='\\Flrc\shares\Accounting\Hotel Cashier\[Cash ReportWB CY2007.xls]NOVEMBER
07'!$C$6

How can I do this by just changing the contents of one cell that contains
the word "NOVEMBER" or "DECEMBER"?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default How to Change Reference

You would need an add-in since the workbook is closed

http://xcell05.free.fr/morefunc/english/index.htm


it has a function called INDIRECT.EXT

read help on how to implement it


--


Regards,


Peo Sjoblom


"Mike H." wrote in message
...
I want this formula to auto-update the month name (Tab):

='\\Flrc\shares\Accounting\Hotel Cashier\[Cash ReportWB
CY2007.xls]NOVEMBER
07'!$C$6

How can I do this by just changing the contents of one cell that contains
the word "NOVEMBER" or "DECEMBER"?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default How to Change Reference

I have a workbook called BOOK$ that has a worksheet called NOVEMBER 07
In another workbook I have the text NOVEMBER
This formula will retrieve the values from C6 the first workbook
=INDIRECT("'C:\Documents and Settings\Owner\My
Documents\Central\[Book4.xls]"&A13&" 07'!$C$6")

Note that uppercase is not needed I did this for clarity.
As Peo points out, INDIRECT needs the file open but INDIRECT.EXT does not.
Hope you get it working with this lead in
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Mike H." wrote in message
...
I want this formula to auto-update the month name (Tab):

='\\Flrc\shares\Accounting\Hotel Cashier\[Cash ReportWB
CY2007.xls]NOVEMBER
07'!$C$6

How can I do this by just changing the contents of one cell that contains
the word "NOVEMBER" or "DECEMBER"?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 471
Default How to Change Reference

I have tried this indirect formula a few times before posting and was getting
"#REF" as the answer. The file is open but not sure what I'm doing wrong. I
am assuming in your example that A13 contains the text "NOVEMBER", right?

"Bernard Liengme" wrote:

I have a workbook called BOOK$ that has a worksheet called NOVEMBER 07
In another workbook I have the text NOVEMBER
This formula will retrieve the values from C6 the first workbook
=INDIRECT("'C:\Documents and Settings\Owner\My
Documents\Central\[Book4.xls]"&A13&" 07'!$C$6")

Note that uppercase is not needed I did this for clarity.
As Peo points out, INDIRECT needs the file open but INDIRECT.EXT does not.
Hope you get it working with this lead in
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Mike H." wrote in message
...
I want this formula to auto-update the month name (Tab):

='\\Flrc\shares\Accounting\Hotel Cashier\[Cash ReportWB
CY2007.xls]NOVEMBER
07'!$C$6

How can I do this by just changing the contents of one cell that contains
the word "NOVEMBER" or "DECEMBER"?





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 471
Default How to Change Reference

I created a similar formula to another spreadsheet and it worked just fine.
The one I am referencing has a password on it and if I have the formula in it
and hit f2 and then enter, I am prompted for a password to update the
formula. But with indirect() I just get #REF. Do you suppose the error is
in the protection being on?

"Bernard Liengme" wrote:

I have a workbook called BOOK$ that has a worksheet called NOVEMBER 07
In another workbook I have the text NOVEMBER
This formula will retrieve the values from C6 the first workbook
=INDIRECT("'C:\Documents and Settings\Owner\My
Documents\Central\[Book4.xls]"&A13&" 07'!$C$6")

Note that uppercase is not needed I did this for clarity.
As Peo points out, INDIRECT needs the file open but INDIRECT.EXT does not.
Hope you get it working with this lead in
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Mike H." wrote in message
...
I want this formula to auto-update the month name (Tab):

='\\Flrc\shares\Accounting\Hotel Cashier\[Cash ReportWB
CY2007.xls]NOVEMBER
07'!$C$6

How can I do this by just changing the contents of one cell that contains
the word "NOVEMBER" or "DECEMBER"?





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
Shortcut to change change cell reference to Absolute reference? richk Excel Worksheet Functions 12 December 5th 09 12:24 AM
reference N change of workbook name vcff Excel Discussion (Misc queries) 5 January 25th 07 04:32 AM
How to change a formula reference? Brockettb Excel Discussion (Misc queries) 4 March 7th 05 11:11 PM
Automatically change tab reference TWC Excel Discussion (Misc queries) 2 February 2nd 05 10:17 PM
Change workbook sheet reference using cell A1 to change a vairable Reed Excel Worksheet Functions 4 January 20th 05 07:15 PM


All times are GMT +1. The time now is 05:35 AM.

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"