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

Data Analysis

  • How to count table rows in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • Example of COUNTIFS with variable table column in Excel
  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How To Remove Duplicates In Excel Column Or Row?

References

  • How to create dynamic named range with OFFSET in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to retrieve first match between two ranges in Excel
  • Create hyperlink with VLOOKUP in Excel

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation specific characters only
  • Excel Data validation don’t exceed total
  • Excel Data validation exists in list
  • Excel Data validation date in next 30 days

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

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel
  • Complete List of Excel Logical Functions, References and Examples
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • SECOND function: Description, Usage, Syntax, Examples and Explanation
  • Count day of week between dates in Excel
  • Get work hours between dates in Excel
  • Get days, hours, and minutes between dates in Excel
  • Add months to date in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group times into unequal buckets in Excel
  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • How to randomly assign data to groups in Excel

General

  • Using Existing Templates in Excel
  • Subtotal by invoice number in Excel
  • Subtotal invoices by age in Excel
  • How to count total number of cells in a rectangular range in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning