CELL Function in Excel: Information About a Cell

⏱ 1 min readUpdated 28 September 2026

InformationLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. 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 article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong