ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how do I place the sheet tab name in my spreadsheet by formula? (https://www.excelbanter.com/excel-worksheet-functions/41373-how-do-i-place-sheet-tab-name-my-spreadsheet-formula.html)

DRHannay

how do I place the sheet tab name in my spreadsheet by formula?
 
how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003


Paul Moles



"DRHannay" wrote:

how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003


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

Blue Hornet

Alternatively, you could write a one-line function in VBA to do the
same thing, easier:

Function SheetName()
SheetName = ActiveSheet.Name
End Function

If this is stored in Personal.XLS where it is always available, you'd
call it on your worksheet with:

=PERSONAL.XLS!sheetname()

Otherwise, if it's stored in the current Workbook (or in an Add-in
which you enable), you could call it without the reference to
Personal.XLS

Chris


EducatingMom

how do I place the sheet tab name in my spreadsheet by formula
 
Hello,
What would be the formula to add in filename into my spreadsheet?

"Paul Moles" wrote:



"DRHannay" wrote:

how do I place the sheet tab name in my spreadsheet by formula?

Excel 2003


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



All times are GMT +1. The time now is 09:19 AM.

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