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
  • Excel Bar Chart
  • How to Create Area Chart in Excel
  • Randomize/ Shuffle List in Excel
  • How to calculate average last N values in a table in Excel

References

  • Offset in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to get first column number in range in Excel
  • To count total rows in a range in Excel

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation must contain specific text
  • Excel Data validation allow uppercase only
  • Excel Data validation exists in list
  • Excel Data validation whole percentage only

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

  • Extract multiple matches into separate rows in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate future date say 6 months ahead in Excel
  • How to calculate percent of year complete in Excel
  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Get work hours between dates and times in Excel
  • Get days, months, and years between dates in Excel

Grouping

  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel

General

  • 231 Keyboard Shortcut Keys In Excel
  • 3D SUMIF for multiple worksheets in Excel
  • Common Errors in Excel
  • How to Create Calendar in Excel
  • Excel Ribbon Quick Overview For Beginners
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning