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

Data Analysis

  • How to do a t-Test in Excel?
  • How To Load Analysis ToolPak in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Error Bars in Excel
  • Working With Tables in Excel

References

  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Extract data with helper column in Excel
  • Two-column Lookup in Excel
  • How to get relative row numbers in a range in Excel

Data Validations

  • Excel Data validation exists in list
  • How To Create Drop-down List in Excel
  • Excel Data validation unique values only
  • Excel Data validation must contain specific text
  • Excel Data validation require unique number

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

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel TRUE Function

Date Time

  • Count day of week between dates in Excel
  • Get first day of previous month in Excel
  • Calculate number of hours between two times in Excel
  • Convert time to time zone in Excel
  • Get days before a date in Excel

Grouping

  • Map text to numbers in Excel
  • Running count group by n size in Excel
  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Excel Default Templates
  • Check if range contains a value not in another range in Excel
  • Automatically fill series of cells in Excel using AutoFill
  • How to calculate percent sold in Excel
  • How to calculate percent of students absent in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning