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

Data Analysis

  • Excel Bar Chart
  • How to Create One and Two Variable Data Tables in Excel
  • How to create a Histogram in Excel
  • Error Bars in Excel
  • Everything about Charts in Excel

References

  • How to get last row in numeric data in Excel
  • How to get relative column numbers in a range in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Count rows that contain specific values in Excel
  • Vlookup Examples in Excel

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation date in specific year
  • Excel Data validation must contain specific text
  • Excel Data validation whole percentage only
  • Excel Data validation must not contain

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

  • Complete List of Excel Logical Functions, References and Examples
  • Not Equal To ‘<>‘ operator in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • IF with boolean logic in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get month name from date in Excel
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Add days to date in Excel
  • Add business days to date in Excel

Grouping

  • Map text to numbers in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Group times into 3 hour buckets in Excel
  • Group arbitrary text values in Excel

General

  • Zoom Worksheet in Excel
  • Customize Ribbon In Excel
  • How to generate random times at specific intervals in Excel
  • Basic text sort formula in Excel
  • AutoRecover file that was never saved in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning