Formualizer Docs

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

ArgumentTypeRequiredDefault
referenceanyRequired—

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)

Input cells
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)

Input cells
A
23

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)

Input cells
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?.

FAQ

Does a formula that returns an error count as a formula?

Yes. ISFORMULA inspects the cell definition rather than its calculated value.

Implementation

Engine source

On this page