Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Perform and Interpret Regression Analysis in Excel
  • Excel Bar Chart
  • Number and Text Filters Examples in Excel
  • How To Load Analysis ToolPak in Excel
  • Get column name from index in Excel Table

References

  • How to use Excel TRANSPOSE Function
  • How to get address of last cell in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to get address of first cell in range in Excel
  • How to get last row in mixed data with blanks in Excel

Data Validations

  • Excel Data validation must begin with
  • How To Create Drop-down List in Excel
  • Excel Data validation must not contain
  • Data validation must not exist in list
  • Excel Data validation date in next 30 days

How to get sheet name only in Excel

by

If you want to get the sheet name only (i.e. the sheet name without the file name or path) you can do so with rather long formula that uses the MID function along with the FIND function. The final result will look something like this:

Sheet1

Formula

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

Explanation

How the formula works

The cell function is used to get the full file name and path:

CELL("filename",A1)

The result looks like this:

path[workbook.xlsm]sheetname

The full file name plus path and sheet is fed into the MID function, which is used to extract just the sheet name.

The starting position is calculated with FIND:

FIND("]",CELL("filename",A1))+1

The number of characters to extract is supplied as 255. In the Excel UI, you can’t name a worksheet longer than 31 characters, but the file format itself permits worksheet names up to 255 characters.

Alternative with RIGHT

Several readers have mentioned an alternative like this with the RIGHT function:

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

A few more function calls, but a perfectly valid formula.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel
  • SWITCH function example in Excel

Date Time

  • Add business days to date in Excel
  • How to calculate Quarter of Date in Excel
  • Convert time to time zone in Excel
  • Get work hours between dates custom schedule in Excel
  • Convert Excel time to decimal minutes

Grouping

  • Group numbers with VLOOKUP in Excel
  • Map inputs to arbitrary values in Excel
  • Map text to numbers in Excel
  • If cell contains one of many things in Excel
  • Group numbers at uneven intervals in Excel

General

  • AutoFit Column Width, AutoFit Row Height in Excel
  • How to Insert Cells, Row and Rows in Excel
  • How to fill cell ranges with random text values in Excel
  • How to calculate profit margin percentage in Excel
  • Zoom Worksheet in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning