Wauvel

Excel like a finance pro.

← The library

Information function

CELL

Returns information about a cell, such as its address, format, or file path.

OccasionalDifficulty 1250 · ProficientUsage rank #194 of 520
Practice · 3 questions →

When to use it

Information about a cell: address, filename and sheet, number format, column width, protection, and more. The filename form is how a sheet can display its own name.

The shape of it

Syntax
=CELL(info_type, [reference])
Example
=CELL("filename",A1)

Worked examples

  • Address

    =CELL("address",B3) $B$3

    The absolute address.

  • File and sheet name

    =CELL("filename",A1) C:\Reports\[Q3.xlsx]Summary

    Full path, workbook, and sheet of the cell.

  • Number format code

    =CELL("format",A1) C2

    A1 is formatted as currency with two decimals.

Worth knowing

  • Sheet name: =TEXTAFTER(CELL("filename",A1),"]").
  • CELL("filename") is empty until the workbook has been saved.
  • Info types: address, col, color, contents, filename, format, parentheses, prefix, protect, row, type, width.

Where it goes wrong

  • Volatile, and the reference argument matters: without it, CELL reports the last changed cell.
  • Format codes are cryptic ("C2", "D1", "P0").

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.