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

Data Analysis

  • Subtotal function in Excel
  • How To Insert and Customize Sparklines in Excel
  • Conditional Formatting Rules in Excel
  • Understanding Pivot Tables in Excel
  • Understanding Anova in Excel

References

  • How to use Excel LOOKUP Function
  • How to get first row number in range in Excel
  • Vlookup Examples in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • Create hyperlink with VLOOKUP in Excel

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation exists in list
  • Excel Data validation number multiple 100
  • How To Create Drop-down List in Excel
  • Excel Data validation don’t exceed total

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

  • Check multiple cells are equal in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Custom weekday abbreviation in Excel
  • Create date range from two dates in Excel
  • Display Days until expiration date in Excel
  • Generate series of dates by weekends in Excel
  • Convert decimal minutes to Excel time

Grouping

  • Map text to numbers in Excel
  • Map inputs to arbitrary values in Excel
  • Running count group by n size in Excel
  • Group arbitrary text values in Excel
  • If cell contains one of many things in Excel

General

  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to count total number of cells in a rectangular range in Excel
  • Hide and Unhide Columns or Rows in Excel
  • How to calculate percent change in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning