Contact

ISFORMULA Function in LibreOffice Calc — Tested Examples

Information Beginner LibreOffice Calc

Audit formula cells in LibreOffice Calc, including blank and error results. Distinguish typed formula-looking text, count formula flags and handle ranges explicitly.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: ISFORMULA is TRUE when the referenced cell stores a formula, even if that formula displays an empty string or an error.

Availability and version history

  • Introduced: Documented by LibreOffice 26.8.1.1; original introduction not established.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

Returns TRUE if the cell is a formula cell. A useful audit is to compare a calculated cell, such as Q5 containing =2+3, with a typed value such as B3. Only the first is a formula.

Syntax and arguments

=ISFORMULA(Reference)

LibreOffice Calc formulas generally separate arguments with semicolons (;).

Argument Explanation
Reference The cell to be tested.

Worked examples

Reproduce these source cells: Q5 contains the formula =2+3; B3 contains the typed value 30.

Example 1: Check whether a referenced cell contains a formula

=ISFORMULA(Q5)

Expected result: TRUE. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Check a non-formula value

=ISFORMULA(B3)

Expected result: FALSE. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

A useful audit is to compare a calculated cell, such as Q5 containing =2+3, with a typed value such as B3. Only the first is a formula.

Mistakes and troubleshooting

  • Check inputs and assumptions: Pasting a calculated result as a value makes ISFORMULA return FALSE, even if the number looks unchanged.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

Additional worked application and edge cases

Required reference and what TRUE means

Reference is the one required argument. Give the address of the cell whose stored content you want to inspect. ISFORMULA tests whether that cell contains a formula; it does not test whether the formula is correct, whether its result is numeric, or whether the cell currently looks empty.

A reference is different from a calculation or text label. In the reviewed implementation, =ISFORMULA(2+3) is FALSE because the argument supplies a computed value rather than a formula-cell reference. =ISFORMULA("A2") supplies literal text and does not inspect cell A2. Use =ISFORMULA(A2) for that purpose.

Stepwise audit of mixed cells

Create the following six cells. For the literal formula-looking text, type a leading apostrophe so Calc stores text instead of evaluating it.

Cell Enter or leave Expected ISFORMULA result
A2 =2+3 TRUE
A3 numeric 5 FALSE
A4 ="" TRUE
A5 literal text =2+3, entered as '=2+3 FALSE
A6 =1/0 TRUE
A7 genuinely empty FALSE

Enter =ISFORMULA(A2) in B2 and fill through B7. The independently source-derived result sequence is TRUE, FALSE, TRUE, FALSE, TRUE, FALSE.

A2 and A3 display the same number but have different storage types. A4 can look empty but still holds a formula. A6 returns an error, yet it is still a formula cell. The apostrophe used to enter A5 as text is an input mechanism, not part of a working formula in that cell.

Advanced application: find overwritten calculations

If A2:A7 is a column expected to contain formulas, enter =IF(ISFORMULA(A2);"Formula present";"Review cell") in C2 and fill down. Rows 3, 5 and 7 receive the review label for this fixture. A TRUE result only confirms formula presence: A6 still needs its division-by-zero error repaired.

To count formula cells using the explicit helper flags, enter =COUNTIF(B2:B7;TRUE()). The expected count is 3. This approach makes the individual audit results visible and separates formula-presence checking from error checking.

Pasting A2’s calculated result back as a value would make its flag FALSE even though the displayed 5 is unchanged. That existing warning is important for a controlled worksheet, but the audit cannot tell whether an overwrite was intentional or recover the old formula. Compare against an approved template or version history when investigating.

Ranges: do not confuse one result with an entire audit

For a clearly specified full-range result, select E2:E7, enter =ISFORMULA(A2:A7) and confirm an array formula with Ctrl+Shift+Enter on Windows/Linux or Command+Shift+Enter on macOS. The expected six flags match column B. The pinned implementation explicitly iterates a same-sheet reference range in array context.

Outside array context, a multi-cell reference can be reduced through Calc’s scalar/implicit-intersection rules. Do not interpret one Boolean as proof that every cell in the supplied range is a formula. Copying a single-cell reference down is usually the clearest audit. The array behavior described here does not establish support for multi-sheet or arbitrary external-reference arrays.

Troubleshooting and limits

ISFORMULA is not ISNUMBER or ISBLANK. A formula can return a number, text, an empty string or an error without ceasing to be a formula. If formula-looking text unexpectedly gives FALSE, check whether it was imported as text or entered with a leading apostrophe. If a copied audit points at the wrong cells, inspect relative and absolute references.

Avoid using a FALSE result as a general reference-validity test. Invalid or unsupported argument forms need their own diagnosis, and the range-array branch has explicit error cases. The example expectations are based on ScIsFormula and its cell-type checks, with scalar-reference conversion in interpr4.cxx. They do not imply a new application run or a formula-security assessment.

Verification scope for this addition: These added results were independently calculated or derived from the cited documentation/source. They were not newly tested in LibreOffice Calc. The original example-specific Calc 25.2.3.2 claims elsewhere on this page remain historical and apply only to those original examples. The cited 26.8.1.1 source tag is a code reference, not a claim of a new run in that release.

Tested version and primary reference

2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.

Detailed reference checked October 17, 2026