Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula to put Worksheet Name in a Cell

I'd like to be able to include the name of each worksheet in the body
of the worksheet without having to type it in each time. Is there a
way to use a formula to tell Excel to do this. I've used
=cell("filename",a1) in the past to get the filename in the worksheet,
but I can't find a similar formula for the worksheet name itself.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula to put Worksheet Name in a Cell

=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

--
Gary''s Student - gsnu200721


"DC Excel User" wrote:

I'd like to be able to include the name of each worksheet in the body
of the worksheet without having to type it in each time. Is there a
way to use a formula to tell Excel to do this. I've used
=cell("filename",a1) in the past to get the filename in the worksheet,
but I can't find a similar formula for the worksheet name itself.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Formula to put Worksheet Name in a Cell

Gary might have mentioned the formula returns #VALUE! until you do a save
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"DC Excel User" wrote in message
ups.com...
I'd like to be able to include the name of each worksheet in the body
of the worksheet without having to type it in each time. Is there a
way to use a formula to tell Excel to do this. I've used
=cell("filename",a1) in the past to get the filename in the worksheet,
but I can't find a similar formula for the worksheet name itself.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula to put Worksheet Name in a Cell

On May 12, 2:45 pm, "Bernard Liengme"
wrote:
Gary might have mentioned the formula returns #VALUE! until you do a save
best wishes
--
Bernard V Liengmewww.stfx.ca/people/bliengme
remove caps from email

"DC Excel User" wrote in oglegroups.com...



I'd like to be able to include the name of each worksheet in the body
of the worksheet without having to type it in each time. Is there a
way to use a formula to tell Excel to do this. I've used
=cell("filename",a1) in the past to get the filename in the worksheet,
but I can't find a similar formula for the worksheet name itself.


Thanks.- Hide quoted text -


- Show quoted text -


Thank you. This worked perfectly -- I should have thought of this
solution.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula to put Worksheet Name in a Cell

On May 12, 2:20 pm, Gary''s Student
wrote:
=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)

--
Gary''s Student - gsnu200721



"DC Excel User" wrote:
I'd like to be able to include the name of each worksheet in the body
of the worksheet without having to type it in each time. Is there a
way to use a formula to tell Excel to do this. I've used
=cell("filename",a1) in the past to get the filename in the worksheet,
but I can't find a similar formula for the worksheet name itself.


Thanks.- Hide quoted text -


- Show quoted text -


Thank you so much. Perfect solution!

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
How do I take a cell in one worksheet and add it into the formula in a different worksheet in the same workbook? Lexi Excel Worksheet Functions 3 September 20th 06 05:52 PM
Cell reference in different worksheet in formula Robb Excel Worksheet Functions 1 May 30th 06 06:52 PM
How do I populate a worksheet name in a formula using a cell ref. Badger Excel Discussion (Misc queries) 1 February 6th 06 09:37 PM
What is the formula to reference a cell in a different worksheet? Jenney Zellner Excel Worksheet Functions 2 October 14th 05 09:26 AM
Can I use a formula to get the worksheet name into a cell? KellyB Excel Worksheet Functions 1 November 19th 04 06:57 PM


All times are GMT +1. The time now is 04:59 AM.

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

About Us

"It's about Microsoft Excel"