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

Data Analysis

  • How to Create Column Chart in Excel
  • How to Create Thermometer Chart in Excel
  • Everything about Charts in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • Get column index in Excel Table

References

  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel MATCH Function
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel COLUMN Function
  • How to use Excel ROW Function

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation with conditional list
  • Excel Data validation specific characters only
  • Prevent invalid data entering in specific cells
  • Data validation must not exist in list

How to get Excel workbook path only

by

If you want to get the workbook path (directory) only, you can do so with a formula that uses the LEFT and the FIND function. The result will look something like this:

Drive:\path\to\file\   //Windows
Drive:path:to:file:    //Mac

Formula

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

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]sheet

The full file name and path are fed into the LEFT function, which is used to extract just the full directory path.

The number of characters to extract by locating the the position of the left square bracket “[” with FIND and subtracting 1:

FIND("[",CELL("Filename",A1))-1

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get first Monday before any date in Excel
  • Add workdays to date custom weekends in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation
  • Create date range from two dates in Excel
  • Get month from date in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Group times into unequal buckets in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to Delete Cells, Row and Rows in Excel
  • Share Excel data with Word documents
  • How to calculate project complete percentage in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to calculate percentage discount in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning