ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how can i get a cell to display the sheet name it's on? (https://www.excelbanter.com/excel-worksheet-functions/190528-how-can-i-get-cell-display-sheet-name-its.html)

Bobbin

how can i get a cell to display the sheet name it's on?
 


Rick Rothstein \(MVP - VB\)[_634_]

how can i get a cell to display the sheet name it's on?
 
As long as the workbook has already been saved, you can use this formula...

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

Rick


"Bobbin" wrote in message
...



T. Valko

how can i get a cell to display the sheet name it's on?
 
Try this:

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

Note: do not change "filename". Enter the formula exactly as shown.

The file must have been saved at least once for this to work. In other
words, the file must already exist. A file doesn't exist until it is saved
and given a name.

--
Biff
Microsoft Excel MVP


"Bobbin" wrote in message
...





All times are GMT +1. The time now is 08:33 AM.

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