Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DLO DLO is offline
external usenet poster
 
Posts: 3
Default Referencing Tab Name in Excel Spreadsheet?

We are trying to find out if there is a way to reference a tab name and have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Referencing Tab Name in Excel Spreadsheet?

=MID(CELL("Filename",A1),FIND("]",CELL("Filename",A1))+1,255)
--
Gary''s Student
gsnu200707


"DLO" wrote:

We are trying to find out if there is a way to reference a tab name and have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Referencing Tab Name in Excel Spreadsheet?

This should work:

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

Note that the workbook must first be saved for this to return the correct
result.

HTH,
Elkar


"DLO" wrote:

We are trying to find out if there is a way to reference a tab name and have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Referencing Tab Name in Excel Spreadsheet?

Try this:

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

The file must already exist. (must have a name and have been saved)

Biff

"DLO" wrote in message
...
We are trying to find out if there is a way to reference a tab name and
have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We
have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.



  #5   Report Post  
Posted to microsoft.public.excel.misc
DLO DLO is offline
external usenet poster
 
Posts: 3
Default Referencing Tab Name in Excel Spreadsheet?

Can one of you explain to me how it works, it makes it much easier for me to
understand how to fix it if something doesn't work, also what is the last
number and why did people mention two different ones?

Thanks!

"DLO" wrote:

We are trying to find out if there is a way to reference a tab name and have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Referencing Tab Name in Excel Spreadsheet?

This formula basically looks at the complete path (filename and sheetname) of
the referenced cell. Since the cell reference doesn't really matter, we just
used cell A1.

It might be easier to understand if you break the formula down into seperate
parts. Try entering just this:

=CELL("filename",A1)

The result should be something like: C:\Excel Files\[myfile.xls]sheet1

We then take this result and manipulate it using the MID function (this
extracts info from a text string, starting somewhere in the middle). To
determine where the starting point for the MID function will be, we use the
FIND function to locate the "]" symbol, which immediately precedes the
sheetname. The final number (255 or 999 or whatever) is simply the number of
characters we want to return from the established starting point. The number
really doesn't matter, so long as it is large enough to include your entire
sheet name.

Hopefully that makes sense.
Elkar


"DLO" wrote:

Can one of you explain to me how it works, it makes it much easier for me to
understand how to fix it if something doesn't work, also what is the last
number and why did people mention two different ones?

Thanks!

"DLO" wrote:

We are trying to find out if there is a way to reference a tab name and have
it print in a cell.

i.e. tab a is named Testing Sheet, we want the name of the tab to also be
shown in Cell A3. Is there a way to reference this without retyping? We have
multiple worksheets and are trying to do a copy/paste formula to
reference/enter worksheet/tab names.

Thank you for any help.

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
Excel referencing across sheets Richard Hocking Excel Discussion (Misc queries) 1 February 1st 06 04:47 PM
Referencing Time in Excel jjhmbh Excel Discussion (Misc queries) 4 December 19th 05 07:34 PM
Need help with excel referencing to outlook chip_pyp Excel Discussion (Misc queries) 0 October 22nd 05 03:10 AM
#VALUE error when referencing spreadsheet on sharepoint library Lois Johns Excel Worksheet Functions 2 May 19th 05 05:38 PM
Inter-spreadsheet Referencing - Continual need to locate linked fi Atreides Excel Discussion (Misc queries) 0 February 22nd 05 07:01 AM


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