Formula to display Sheet name

J

JaneC

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

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
 
M

Mangesh Yadav

Sorry,

for the sheet name, use:

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


Mangesh



Mangesh Yadav said:
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 said:
Hi, Is there a formula I can put in a cell that will show the name of the
sheet it is on? Thanks, Jane
 
K

Krishnakumar

Hi,

Define X[/]

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

In the cell,

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

HTH
 
Top