ISFORMULA
Returns whether the referenced cell contains a formula.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=ISFORMULA(reference)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
reference | any | Required | — |
Return type
Logical (TRUE or FALSE)
Differences from Excel
Formualizer accepts scalar expressions and returns FALSE for them. Excel requires a reference.
Remarks
- Inspects the first cell of a reference, including named references.
- Non-reference values return FALSE; the referenced value need not be evaluated.
Error cases
- Arity mismatch returns
#VALUE!.
Examples
Test a reference to a cell that stores an arithmetic formula.
Formula =ISFORMULA(A1)
| A | |
|---|---|
| 1 | =1+2 |
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The same calculated number stored directly is a value.
Formula =ISFORMULA(A2)
| A | |
|---|---|
| 2 | 3 |
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A formula cell remains a formula cell if its calculation returns an error.
Formula =ISFORMULA(B1)
| B | |
|---|---|
| 1 | =1/0 |
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does a formula that returns an error count as a formula?
Yes. ISFORMULA inspects the cell definition rather than its calculated value.