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

Data Analysis

  • How to calculate average last N values in a table in Excel
  • How to Use Solver Tool in Excel
  • Move chart to a separate worksheet in Excel
  • Conditional Formatting Rules in Excel
  • How To Create Frequency Distribution in Excel

References

  • How to use Excel TRANSPOSE Function
  • Count unique text values with criteria
  • Get nth match with INDEX / MATCH in Excel
  • How to get address of last cell in range in Excel
  • Approximate match with multiple criteria in Excel

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation allow uppercase only
  • Excel Data validation with conditional list
  • Prevent invalid data entering in specific cells
  • Excel Data validation exists in list

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

  • Extract multiple matches into separate rows in Excel
  • IF with wildcards in Excel
  • OR function Examples in Excel
  • IF, AND, OR and NOT Functions Examples in Excel
  • How to use Excel AND Function

Date Time

  • Display Days until expiration date in Excel
  • Get last weekday in month in Excel
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation
  • Add workdays to date custom weekends in Excel
  • Display Days in month in Excel

Grouping

  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel
  • Group numbers at uneven intervals in Excel
  • Group times into 3 hour buckets in Excel
  • Map text to numbers in Excel

General

  • How to calculate percent of students absent in Excel
  • How to generate random number weighted probability in Excel
  • With vs Without Array Formula in Excel
  • How to get amount with percentage in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning