#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
john anderson
 
Posts: n/a
Default Tab Names

I need a formula to show the tab name only in the spreadsheet. I know how to
get the file and path name, but that brings up too much information. I only
want it to display the tab name.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Tab Names

Try in any cell:
=MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,32)
(workbook must be saved first)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"john anderson" <john wrote in message
...
I need a formula to show the tab name only in the spreadsheet. I know how

to
get the file and path name, but that brings up too much information. I

only
want it to display the tab name.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi
 
Posts: n/a
Default Tab Names

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

It's not my intention, I found it int this forum, but Iforgot the author's
name, sorry!

Regards,
Stefi


€˛john anderson€¯ ezt Ć*rta:

I need a formula to show the tab name only in the spreadsheet. I know how to
get the file and path name, but that brings up too much information. I only
want it to display the tab name.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Tab Names

Another alternative (Technique from a post by Harlan)
is to create a defined name say, "WSN" as per steps below,
then we could just use "WSN" to refer to the sheetname
in formulas within the book

Click Insert Name Define
Put under "Names in workbook:": WSN
Put in the "Refers to:" box:
=MID(CELL("Filename",INDIRECT("A1")),FIND("]",CELL("Filename",INDIRECT("A1")
))+1,32)
Click OK

[As before, the workbook must be saved first]
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Tab Names

.. then we could just use "WSN" to refer to the sheetname
in formulas within the book ..


Example:

In any sheet, putting in any cell within the sheet: =WSN
will return that sheet's tab name into the cell

Or, applied within a formula:
=VLOOKUP(WSN, ...)

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
The filter didn't show all (2,254) names when I set it up Darrell Excel Discussion (Misc queries) 2 December 17th 05 04:25 PM
Convert Local Names to Global Names Ed Excel Worksheet Functions 1 November 30th 05 05:23 PM
Separating names Danno Excel Worksheet Functions 5 October 31st 05 12:29 AM
sorting names alphabetically when names may start with numbers John Smith Excel Discussion (Misc queries) 3 May 11th 05 08:06 PM
How can I find the common names in two columns of names? hako Excel Discussion (Misc queries) 2 December 8th 04 01:59 AM


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