Excel Office

Excel How Tos, Tutorials, Tips & Tricks, Shortcuts

How to get full workbook name and path in Excel

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:   List sheet names with formula in Excel

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




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:   How to get address of first cell in range in Excel
Worked Example:   View Multiple Workbooks at The Same Time in Excel

Leave a Reply

Your email address will not be published. Required fields are marked *