ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula to display Sheet name (https://www.excelbanter.com/excel-worksheet-functions/38406-formula-display-sheet-name.html)

JaneC

Formula to display Sheet name
 
Hi, Is there a formula I can put in a cell that will show the name of the
sheet it is on? Thanks, Jane

Rowan

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

Regards
Rowan

"JaneC" wrote:

Hi, Is there a formula I can put in a cell that will show the name of the
sheet it is on? Thanks, Jane


Mangesh Yadav

Use:

=CELL("filename",A1)

will give the full path. If you need just the file name, then use:

=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

Mangesh



"JaneC" wrote in message
...
Hi, Is there a formula I can put in a cell that will show the name of the
sheet it is on? Thanks, Jane




Mangesh Yadav

Sorry,

for the sheet name, use:

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


Mangesh



"Mangesh Yadav" wrote in message
...
Use:

=CELL("filename",A1)

will give the full path. If you need just the file name, then use:


=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("file
name",A1))-FIND("[",CELL("filename",A1))-1)

Mangesh



"JaneC" wrote in message
...
Hi, Is there a formula I can put in a cell that will show the name of

the
sheet it is on? Thanks, Jane






Bob Phillips

See http://www.xldynamic.com/source/xld.xlFAQ0002.html

--
HTH

Bob Phillips

"JaneC" wrote in message
...
Hi, Is there a formula I can put in a cell that will show the name of the
sheet it is on? Thanks, Jane




Krishnakumar


Hi,

Define [b]X[/]

=GET.DOCUMENT(76)&T(NOW())

In the cell,

=MID(X,FIND("]",X)+1,255)

HTH


--
Krishnakumar


------------------------------------------------------------------------
Krishnakumar's Profile: http://www.excelforum.com/member.php...o&userid=20138
View this thread: http://www.excelforum.com/showthread...hreadid=392422



All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com