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

Data Analysis

  • Conditional Formatting Data bars Examples in Excel
  • Conditional Formatting Rules in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Data Series in Excel
  • Conditional Formatting Color Scales Examples in Excel

References

  • How to use Excel COLUMN Function
  • Extract all partial matches in Excel
  • How to get last row in numeric data in Excel
  • How to get relative column numbers in a range in Excel
  • Multi-criteria lookup and transpose in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation unique values only
  • Excel Data validation allow weekday only
  • Excel Data validation with conditional list
  • 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

  • How to use Excel OR Function
  • IF, AND, OR and NOT Functions Examples in Excel
  • Extract multiple matches into separate rows in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples

Date Time

  • Sum through n months in Excel
  • How to get Weekdays, Working days between Two Dates in Excel
  • How to show last updated date stamp in Excel
  • Get days between dates in Excel
  • Convert date to text in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • Map text to numbers in Excel
  • Running count group by n size in Excel

General

  • Lock Cells in a Worksheet Excel
  • How to generate random date between two dates in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to count total columns in range in Excel
  • How to generate random number weighted probability in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning