How To Use CELL To Get Current Workbook Information

Get The Completed Workbook

Note: You will need to save the completed workbook somewhere on your computer for the functions to work.

How do you get information about the current workbook such as the file name, file path and the current sheet name? The CELL function can be a pretty handy tool for getting this type of information, but you’ll have to do a bit of work to get it.



Without any adjustments¬†CELL(“filename”,A1) will return the full file path and current sheet name, so some text parsing will be needed.

For the file path:


For the workbook name:


For the sheet name:



About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and freelance consultant and trainer specializing in Excel, Power BI, Power Automate, Power Apps and SharePoint. You can find other interesting articles from John on his blog or YouTube channel.


Related Posts



Get the Latest Microsoft Excel Tips

Follow Us

Follow us on social media to stay up to date with the latest in Microsoft Excel!