Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get last column number in range in Excel
  • How to create dynamic named range with OFFSET in Excel
  • How to use Excel ROW Function
  • How to get first column number in range in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation

Data Analysis Examples

  • How to create dynamic reference table name in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Add Outline to Data in Excel
  • How to Create Column Chart in Excel
  • How To Create Frequency Distribution in Excel

Data Validation Examples

  • Prevent invalid data entering in specific cells
  • Excel Data validation must begin with
  • Data validation must not exist in list
  • Excel Data validation number multiple 100
  • Excel Data validation only dates between

How to get full workbook name and path in Excel

by

If you want to get the current workbook’s full path, name, and sheet with a formula, you can use the CELL function and a reference to any cell in the workbook. CELL will return the name in this format:

Worked Example:   Excel Workbook Views
path[workbook.xlsx]sheetname

Note that you must save the worksheet in order to get the a result.

Formula

=CELL("filename",A1)

Explanation

A note about the reference argument

The CELL function has an optional second argument called “reference”. If reference is not supplied, CELL will return the name of the current “active sheet” which may or may not be the sheet where the formula exists, and might even be in a different workbook. To eliminate confusion, supply A1 for reference when you are getting the filename.

Worked Example:   Steps To Password Protect a Workbook in Excel
Worked Example:   How to get sheet name only in Excel

Post navigation

Previous Post:

How to remove trailing slash from url in Excel

Next Post:

How to retrieve workbook name only in Excel

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
  • Get position of 2nd 3rd and more instance of character in Excel
  • How to Remove Leading Spaces in Excel
  • Remove last characters from right in a cell in Excel
  • Remove file extension from filename in Excel
  • How to count total characters in a range in Excel
  • TIME function: Description, Usage, Syntax, Examples and Explanation
  • Get last working day in month in Excel
  • Dynamic date list in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • Get first Monday before any date in Excel
  • How to set check register balance in Excel
  • Bond valuation example in Excel
  • EFFECT function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate Net Present Value (NPV) in Excel
  • COUPDAYS function: Description, Usage, Syntax, Examples and Explanation
Acronyms, Abbreviations, Initialism & What They Stand For
© 2021 xlsoffice. All Rights Reserved | Teal Smiles