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

Data Analysis

  • Randomize/ Shuffle List in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Chart Axes in Excel
  • Excel Frequency Function Example
  • How to Use Solver Tool in Excel

References

  • How to reference named range different sheet in Excel
  • Lookup entire row in Excel
  • How to retrieve first match between two ranges in Excel
  • How to get address of first cell in range in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation no punctuation
  • Excel Data validation allow weekday only
  • Excel Data validation must not contain
  • Excel Data validation with conditional 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

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • IF with wildcards in Excel
  • Return blank if in Excel
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function

Date Time

  • How to calculate Day of the Year in Excel
  • Convert Excel time to decimal hours in Excel
  • How to calculate quarter from date in Excel
  • Extract time from a date and time in Excel
  • Convert decimal seconds to Excel time

Grouping

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

General

  • Print Excel Sheet In Landscape Or Portrait
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • How to count total columns in range in Excel
  • Count cells that do not contain many strings in Excel
  • How to calculate percent change in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning