ONLYOFFICE ISFORMULA Function: Detect Formula Cells
Use ONLYOFFICE ISFORMULA to distinguish formulas from manually entered values, including formulas showing blank results or errors.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =ISFORMULA(A2) returns TRUE if A2 contains a formula, and FALSE if it contains an ordinary typed value or is empty. This is a check of how a cell is populated, not a test of the displayed result. A cell showing 5 may hold either a typed 5 or =2+3; ISFORMULA distinguishes them.
Availability and version history
- Introduced: The original introduction version and date are not established by the official sources checked.
- Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final working-version endpoint is established.
- Scope: Docs and Desktop Editors release separately. This unversioned help does not establish availability in every older build, mobile client or deployment.
- Checked: October 14, 2026, against the official function reference. Documentation check; not a new native test.
Syntax and required argument
=ISFORMULA(reference)
| Argument | Required? | Definition |
|---|---|---|
reference |
Yes | Reference to the cell being checked for a formula. |
The ONLYOFFICE reference says the function returns TRUE for a formula in the referenced cell and FALSE otherwise. There is no optional argument, omitted-value default or second mode parameter. The reference page’s wording additionally mentions an array-formula context; it does not establish specific behaviour for multi-cell ranges, spilled arrays or cross-sheet reference shapes. Examples here deliberately use one referenced cell each.
Hands-on worksheet example
Build the following sheet manually, entering each item exactly as shown, then put =ISFORMULA(A2) in B2 and fill through B8. Empty means leave the cell completely empty; text values should be typed without a leading =.
| Row | Enter into A | Expected display in A | Expected ISFORMULA result |
|---|---|---|---|
| 2 | =2+3 |
5 |
TRUE |
| 3 | 5 |
5 |
FALSE |
| 4 | ="Approved" |
Approved |
TRUE |
| 5 | Approved |
Approved |
FALSE |
| 6 | =IF(1=2,"Yes","") |
Empty-looking string | TRUE |
| 7 | (leave completely empty) | Blank | FALSE |
| 8 | =1/0 |
#DIV/0! |
TRUE |
These are documentation-based expected classifications, not application-observed outputs. In particular, displaying an empty string does not turn a formula cell into an empty physical cell; likewise, a formula returning an error is still a formula. If the locale requires semicolons rather than commas in IF, adapt A6 appropriately and verify it natively.
Advanced audit: show calculated versus manual values
To flag cells that depend on formulas, type into B2 and fill down:
=IF(ISFORMULA(A2),"Calculated","Manual or blank")
For the sample, B2 should be Calculated, B3 Manual or blank, and B6 Calculated. This is helpful for auditing a workbook before manually overwriting an important calculation.
To distinguish truly blank cells from a manual value, compose ISFORMULA with ISBLANK:
=IF(ISFORMULA(A2),"Formula",IF(ISBLANK(A2),"Empty cell","Manual value"))
For A2 =2+3 the expected result is Formula. For a physically empty A7 the expected result is Empty cell. A numeric constant 5 in A3 should be Manual value. A cell containing a formula that evaluates to an empty string should remain Formula because ISFORMULA is evaluated first.
This example is for one-cell references. For a large audit, copy the formula row by row or use a deliberately designed helper column. The vendor function page alone does not justify claims about whole-range dynamic spilling.
Source-backed distinction: reference to an error versus an error argument
The pinned ONLYOFFICE ISFORMULA routine asks the referenced range object whether it contains a formula. It does not decide from the displayed scalar result. The routine separately returns a directly supplied error argument unchanged. Thus a reference to a cell with an error-producing formula and an error expression passed directly to ISFORMULA are different input shapes. Use the documented cell-reference form for the audit below; this guide does not advertise direct scalar expressions as a substitute for reference.
Its range path delegates to a range-level method whose multi-cell policy is not established by this function alone. The code even notes cross-product differences for multiple populated cells. This source review reinforces the guide’s one-cell-at-a-time scope; it does not establish whole-range spilling or a universal any/all formula test.
Advanced: catch a formula overwritten by its current value
Create FormulaAudit, with room through E7. Enter =2+3, 5, ="", =1/0 and Approved in A2:A6. Fill B2 =ISFORMULA(A2), C2 =ISERROR(A2) and D2 =IF(B2,"Formula present","Manual or blank") through row 6.
| Row | A entry | Expected B | Expected C | Expected D |
|---|---|---|---|---|
| 2 | =2+3 |
TRUE | FALSE | Formula present |
| 3 | 5 |
FALSE | FALSE | Manual or blank |
| 4 | ="" |
TRUE | FALSE | Formula present |
| 5 | =1/0 |
TRUE | TRUE | Formula present |
| 6 | Approved |
FALSE | FALSE | Manual or blank |
Duplicate the sheet as PastedValues and replace only A2 with typed numeric 5. Its visible value remains 5, but B2 changes to FALSE and D2 to Manual or blank. That difference is the useful audit signal. A cell can also contain an incorrect formula, so TRUE is not a correctness certificate.
For an area whose rows 2–5 are all expected to contain formulas, put =IF(ISFORMULA(A2),0,1) in E2 and fill to E5. The independently expected =SUM(E2:E5) is 1 on the original sheet and 2 after A2 is replaced. This count diagnoses formula absence only; it deliberately does not count the existing division error as an absent formula. Preserve the source formulas and investigate error status separately.
Evidence date and scope: The fixed source revision above was retrieved and inspected on October 15, 2026. Cached Help Center references retain their stated October 13–14, 2026 checks. The isolated JavaScript tests use synthetic value/reference types; they do not execute a formula parser, complete calculation engine, workbook or graphical editor. No released-build mapping is inferred from the source commit.
Common mistakes and troubleshooting
| Observation | Cause or consideration | Recommended check |
|---|---|---|
Two cells display 5 but have different results |
One is a typed number; the other is a formula producing 5 | Inspect the formula bar. |
| A visually blank cell returns TRUE | It contains a formula returning "" |
Inspect =IF(..., "", ...) and other formula logic. |
| An error cell returns TRUE | The error was produced by a formula | ISFORMULA is not an error detector; use ISERROR for that. |
| An empty cell returns FALSE | There is no formula in that cell | This is expected. |
| A referenced cell is not recognized | The reference might not point to the intended cell | Verify sheet name, row, column, and relative references. |
| A multi-cell range behaves unexpectedly | Range/array details are not established by the checked page | Reduce to a single-cell reference and test on the target version. |
ISFORMULA vs. ISBLANK: ISFORMULA asks whether the cell contains a formula; ISBLANK asks whether the cell is empty. ISFORMULA vs. ISERROR: a formula can return a valid result or an error, so these are different tests. None of the three should be used to infer spreadsheet author intent or that a formula is correct.
Editor versions, locale and compatibility limitations
The English function reference documents ISFORMULA without a first-supported release number or a fully specified ONLYOFFICE Docs-versus-Desktop behaviour matrix. The Formula tab instructions cover web and desktop interfaces in general; this is not native execution evidence. A simple =ISFORMULA(A2) has no separator, but nested IF examples contain commas and may require locale-specific syntax changes. Behaviour with external references, merged cells, multi-cell arrays, structured tables and imported compatibility formulas needs separate native checking.
Official documentation and verification ledger
- ONLYOFFICE ISFORMULA reference — single
referenceargument, formula detection and Boolean result; contains ambiguous array-formula note. Accessed 2026-10-13 UTC. - ONLYOFFICE Insert Function catalogue — lists the function under Information. Accessed 2026-10-13 UTC.
- ONLYOFFICE Formula tab instructions — general web and desktop UI. Accessed 2026-10-13 UTC.
Verification limits: Official rules and every displayed example were independently checked. No native ONLYOFFICE execution or localized formula test was performed. Historical release support, undocumented coercion and any array/date-system boundaries noted above remain untested.