Syntax
=CELL(info_type, [reference])Arguments
| Argument | Required | Description |
|---|---|---|
info_type | Required | What to return: "address", "col", "color", "contents", "filename", "format", "parentheses", "prefix", "protect", "row", "type" or "width" |
reference | Optional | The 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 =CELL("address", B2)Result =CELL("type", A1)Result Data in the sheet
| A | |
|---|---|
| 1 | Total |
Related information functions
- ERROR.TYPEReturns a number for the kind of error a value is (1 for #NULL!, 2 for #DIV/0!, 3 for #VALUE!...), or #N/A when it is not an error.
- INFOReturns information about the working environment, such as "recalc", "release", "system", "numfile", "origin", "directory" or "osversion".
- ISBLANKChecks whether a cell is empty.
- ISEMAILChecks whether a value is a valid email address.
- ISERRChecks whether a value is any error except #N/A.
- ISERRORChecks whether a value is any error.
- ISEVENChecks whether a number is even (the fraction is dropped first).
- ISFORMULAChecks whether a cell contains a formula.
- ISLOGICALChecks whether a value is TRUE or FALSE.