
InformationLevel: ExpertAvailable in: Excel 2007+
In this article
- Syntax
- Examples
- Example 1
- Related functions
CELL reports details such as address, column width, number format or file path. Its best-known use is getting the current sheet name.
Syntax
=CELL(info_type, [reference])
| Argument |
What it means |
info_type |
“filename”, “address”, “format”, “width” and more. |
Examples
Example 1
=MID(CELL("filename",A1), FIND("]",CELL("filename",A1))+1, 99)
The sheet name (the file must be saved first).
💡 Always pass a reference such as A1. Without it, CELL describes whichever cell was changed last, on any sheet.
INFO · FORMULATEXT
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong