1. Home
  2. Functions
  3. Information
  4. CELL

CELL function

Returns information about a cell: its address, row, column, contents, type, number format, width and more.

Syntax

=CELL(info_type, [reference])

Arguments

ArgumentRequiredDescription
info_typeRequiredWhat to return: "address", "col", "color", "contents", "filename", "format", "parentheses", "prefix", "protect", "row", "type" or "width"
referenceOptionalThe cell to describe (the formula cell when left out)

How to use CELL

CELL takes 1 required argument and 1 optional argument. Type =CELL( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=CELL("row", C7)Result 7
=CELL("address", B2)Result "$B$2"
=CELL("type", A1)Result "l"
Data in the sheet
A
1Total

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.