LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Update cell contents based on worksheet name

A formula like:
=RIGHT(CELL("filename",A1),
LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))

will return the name of the worksheet (if the workbook has been saved).

You can use that long formula in an if statement--or put that formula in a cell,
then use a reference to that cell in your formula.

PJ wrote:

Is it possible to have the contents of a cell updated based on the name of a
worksheet?


--

Dave Peterson
 
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
How to update worksheet colours based on worksheet name AG Excel Discussion (Misc queries) 1 June 15th 07 10:09 AM
rename worksheet based on contents of a cell in different workshee OfficeNDN Excel Discussion (Misc queries) 1 May 18th 07 06:02 AM
Update a formula based on date worksheet was saved Kevin McQuain Excel Worksheet Functions 0 October 6th 05 02:06 PM
update cell in other worksheet based... mwrfsu Excel Worksheet Functions 0 August 19th 05 05:22 PM
Can I use cell contents to update footers in excel? GregW Excel Discussion (Misc queries) 2 August 15th 05 06:49 PM


All times are GMT +1. The time now is 04:55 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"