#1   Report Post  
Posted to microsoft.public.excel.misc
sdmccabe
 
Posts: n/a
Default Tab Names

Can I display the name of a tab in a given cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
JudithJubilee
 
Posts: n/a
Default Tab Names

Hello sdmccabe,

Type the following formula:

=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL"filename",A1),1))

Exactly as is written but on 1 line

Judith
--
Hope this helps


"sdmccabe" wrote:

Can I display the name of a tab in a given cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
sdmccabe
 
Posts: n/a
Default Tab Names

Thanks for the formula. I tried to copy and paste into a cell and Excel
advised the formula contained an error, highlighting the the following
portion:

CELL("filename"

Did I do something wrong?


"JudithJubilee" wrote:

Hello sdmccabe,

Type the following formula:

=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1) )-FIND("]",CELL"filename",A1),1))

Exactly as is written but on 1 line

Judith
--
Hope this helps


"sdmccabe" wrote:

Can I display the name of a tab in a given cell?

  #4   Report Post  
Posted to microsoft.public.excel.misc
intruder9
 
Posts: n/a
Default Tab Names


Try this =MID(CELL("filename"), FIND("]",CELL("filename"))+1,
LEN(CELL("filename"))-FIND("]", CELL("filename")))


--
intruder9
------------------------------------------------------------------------
intruder9's Profile: http://www.excelforum.com/member.php...o&userid=30107
View this thread: http://www.excelforum.com/showthread...hreadid=525536

  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Tab Names

That won't work, do as follows


1. Enter the formula in a cell on Sheet1

2. enter the same formula in Sheet2

3. Go back to Sheet1, it now says Sheet2

you need to add a cell reference

=MID(CELL("filename",A1),
FIND("]",CELL("filename",A1))+1,LEN(CELL("filename".A 1))-FIND("]",
CELL("filename",A1)))

also this part

LEN(CELL("filename"))-FIND("]", CELL("filename")))

is really obsolete, since a sheet name can only contain 31 characters you
can use

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



--

Regards,

Peo Sjoblom





"intruder9" wrote
in message ...

Try this =MID(CELL("filename"), FIND("]",CELL("filename"))+1,
LEN(CELL("filename"))-FIND("]", CELL("filename")))


--
intruder9
------------------------------------------------------------------------
intruder9's Profile:
http://www.excelforum.com/member.php...o&userid=30107
View this thread: http://www.excelforum.com/showthread...hreadid=525536



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
Have 2 columns of names - need to filter out names not duplicated Jill Excel Worksheet Functions 6 January 20th 06 08:01 PM
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
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 03:56 PM.

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"