Read Cell Properties with CELL

Excel Formulas › Information

All versionsCELL

The CELL function reports metadata about a cell — its address, column number, data type, or even the workbook’s file path — useful for dynamic labels, audits, and sheet-name tricks.


Quick formula: get the column number of a cell:
=CELL("col", A2)
The first argument is the property name; the second is the cell to inspect.

Functions used (tap for the full reference guide):

The example

Inspect a cell’s address, type, and column.

AB
1Info typeResult
2"col"1
3"type"v / l / b

The formula

The formula:

=CELL("col", A2) // cell metadata

How it works

How it works:

  1. CELL(info_type, reference) returns a property of the referenced cell.
  2. Common types: "address", "col", "row", "type" (v=value, l=label/text, b=blank), "contents", "filename".
  3. CELL("filename", A1) returns the full path, sheet included — the basis of sheet-name extraction.
  4. Omit the reference to report on the last cell that changed.

CELL is volatile — it recalculates on every change, which can slow large workbooks. And CELL("filename") returns an empty string until the workbook has been saved at least once. Save the file before relying on path-based formulas.

Try it: interactive demo

Live demo

Pick an info type for a sample cell holding "Hello" at C5.

Result:

Variations

Cell address

As $A$1 text:

=CELL("address", A2)

Sheet name

From filename:

=TEXTAFTER(CELL("filename",A1),"]")

Data type

v / l / b:

=CELL("type", A2)

Pitfalls & errors

Volatile. CELL recalculates constantly; avoid sprinkling it across huge sheets.

filename needs a save. Returns "" until the workbook is saved to disk.

Quote the info type. The first argument is text — "col", not col.

Practice workbook

📊
Download the free Read Cell Properties with CELL practice workbook
A CELL sheet with the address, sheet-name, and type variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

What does the CELL function do in Excel?
CELL(info_type, reference) returns metadata about a cell — its address, column, row, data type, contents, or the workbook filename.
How do I get the sheet name with CELL?
Use CELL("filename", A1) to get the full path and sheet, then extract the part after "]", e.g. =TEXTAFTER(CELL("filename",A1),"]").
Why is CELL("filename") blank?
It returns an empty string until the workbook has been saved at least once.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Get sheet name · Column letter · Type of a value

Function references: CELL