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

Data Analysis

  • Number and Text Filters Examples in Excel
  • Get column name from index in Excel Table
  • Chart Axes in Excel
  • How to Create Thermometer Chart in Excel
  • How to create dynamic reference table name in Excel

References

  • How to get last row in mixed data with blanks in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • Vlookup Examples in Excel
  • Excel Advanced Lookup using Index and Match Functions
  • How to use Excel VLOOKUP Function

Data Validations

  • Excel Data validation only dates between
  • Excel Data validation allow uppercase only
  • How To Create Drop-down List in Excel
  • Excel Data validation require unique number
  • Excel Data validation number multiple 100

Get workbook name and path without sheet in Excel

by

If you want to get the current workbook’s full name and path without a sheet name, you can use a formula that employs several text functions to strip off the sheet name. The final result will be a text string that looks like this:

path[workbook.xlsm]

Formula

=SUBSTITUTE( LEFT(CELL("filename",A1),FIND("]",CELL("filename",A1))-1),"[","")

Explanation

How the formula works

The CELL function is used with “filename” to get the full workbook name and path:

CELL("filename",A1)

The result is a full path that looks like this:

path[workbook.xlsm]sheetname

The LEFT function receives the full path as text, along with the the location of square bracket “]” (minus 1) which is calculated by the find function:

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

With these arguments, LEFT effectively strips off the sheet name out of the path. However, the left square bracket “]” remains:

path[workbook.xlsm

The final function, SUBSTITUTE, removes the “]” by replacing it with an empty string (“”).

=SUBSTITUTE(path[workbook.xlsm,"[","")

 

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

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • How to use Excel XOR Function
  • FALSE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Count holidays between two dates in Excel
  • How to calculate quarter from date in Excel
  • Calculate number of hours between two times in Excel
  • Steps to create Dynamic calendar grid in Excel
  • Pad week numbers with zeros in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • Group times into unequal buckets in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Spell Check in Excel
  • Count cells that do not contain many strings in Excel
  • Customize Ribbon In Excel
  • Excel Ribbon Quick Overview For Beginners
  • How to choose page/paper size in Excel before Printing
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning