Contact

GET.FORMULA Function (Gnumeric)

Information Beginner Gnumeric

Read a cell formula including its leading equals sign with Gnumeric GET.FORMULA, distinguishing formulas, constants and invalid ranges.

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

GET.FORMULA reports a cell’s formula as text, including its leading equals sign. It is useful in model documentation, review columns, and worksheets that display both a calculated result and the expression that produced it. The dot in the function name is significant; enter GET.FORMULA exactly.

Syntax and behavior

GET.FORMULA(cell)

cell must identify one cell. A formula cell produces its formula string. A constant or a cell with no expression produces an empty value. A multi-cell range returns #REF! in the pinned implementation.

Gnumeric’s help identifies GET.FORMULA with the OpenFormula FORMULA function. That correspondence does not make every spreadsheet’s spelling interchangeable. In Gnumeric, use the documented GET.FORMULA name and verify exported workbooks in their receiving application.

Worked example: show a calculation beside its result

Enter 10 in A1 and 20 in A2. Put =A1+A2 in A3, the literal number 30 in A4, and leave A5 empty. The two populated result cells both display 30, but their origins differ.

Formula in another column Native result
=GET.FORMULA(A3) =A1+A2
=GET.FORMULA(A4) empty
=GET.FORMULA(A5) empty
=GET.FORMULA(A1:A2) #REF!

The leading equals sign is part of the returned string. The cell containing GET.FORMULA is still calculating an inspection formula; the returned text is not a second live copy of A3’s arithmetic.

Advanced use: review a copied model

Create an audit column beside a series of formulas and fill a GET.FORMULA reference down. Review whether absolute and relative references follow the intended pattern. This is especially useful when several wrong formulas happen to return plausible numbers and ordinary output comparison is inconclusive.

The string is generated from Gnumeric’s parsed expression using its formula conventions. It is not a guarantee that the original input’s whitespace or letter case will be reproduced exactly. For a durable audit, retain the workbook and record the assumptions and input version as well as the visible formula text.

GET.FORMULA is also useful for distinguishing calculated cells from pasted values. However, its empty result cannot distinguish a blank source cell from a constant by itself. Combine the audit with ISFORMULA or a separate source-data check when that distinction matters.

Difference from EXPRESSION

Gnumeric’s EXPRESSION reports the expression without the leading equals sign. For the example A3, EXPRESSION produces A1+A2, while GET.FORMULA produces =A1+A2. Select the output form your documentation needs; do not remove the first character blindly from arbitrary text.

Neither function is a text-to-formula evaluator. If a cell contains a literal string that happens to look like a formula, inspecting it does not turn it into a calculation.

XLSX export: why FORMULATEXT appears

Gnumeric 1.12.62 maps GET.FORMULA to _xlfn.FORMULATEXT when writing XLSX formulas, and maps that name back on import. For example, the stored XLSX expression for =GET.FORMULA(A3) is _xlfn.FORMULATEXT(A3). The formula element in the file omits the leading =. This is a file-format name conversion, not a recommendation to change the formula you enter in Gnumeric.

A Gnumeric 1.12.62 command-line export/re-import test used the inputs above and recalculated the XLSX after removing its saved formula results. The returned text was still =A1+A2. Changing A1 from 10 to 11 changed A3 from 30 to 31 without changing the inspected formula text. In a separate check with the original inputs, replacing A3 with =A1*A2 changed its result to 200 and the inspected text to =A1*A2. Restoring the addition restored both original results. The constant and blank checks remained empty, and the multi-cell reference remained #REF! in Gnumeric.

These checks establish a bounded Gnumeric-to-XLSX-to-Gnumeric round trip, not execution in Excel, Google Sheets or ONLYOFFICE. In particular, the renamed formula does not establish that another application treats constants, blank cells or ranges the same way. Test both formula text and recalculated results in the receiving application before relying on an exchange copy. Keep a native master and follow the XLSX compatibility tutorial for the broader save-and-reopen workflow.

Errors and troubleshooting

  • A multi-cell input is rejected with #REF!; inspect individual cells instead.
  • An empty result may mean a pasted constant, not missing source data.
  • Reference the cell directly. A quoted address is text and does not identify the intended cell by itself.
  • Moving the documentation to another spreadsheet program may require a different function name. Test formula preservation and recalculation, not just the cached display.
  • Do not overwrite the original calculation with its text while constructing an audit view.

Version and verification

Official 1.12.57 source documents and registers GET.FORMULA. Its original introduction release has not been established here; no retirement or final-supported-version claim is made. The four worked cases were recalculated using Gnumeric 1.12.57 under C.UTF-8 on 17 October 2026. These multi-case checks are headless calculation evidence. The selected formula-text example was additionally displayed in the actual application, as shown below.

The additional XLSX name-mapping checks used Gnumeric 1.12.62 with GOFFICE 0.10.61 on Debian 13 x86_64, C.UTF-8 locale and UTC, on 22 October 2026. They used the free native command-line engine only. No new GUI screenshot or receiving-application test was performed. The earlier 1.12.57 screenshot retains its original scope.

ISFORMULA tests formula presence, and TEXT formats a value rather than extracting the expression that produced it.

Official references

Native application screenshot

This separate screenshot worksheet uses A1 = 10; A2 = 20; A3 = =A1+A2; B2 = Formula text. In B3, =GET.FORMULA(A3) returns =A1+A2. The screenshot layout is independent of the cell positions in the earlier tutorial. Only this selected example is GUI-verified; the other checks retain their stated engine-test scope.

Gnumeric GET.FORMULA example showing selected formula and result

Actual Gnumeric 1.12.57 application, captured 17 October 2026. GUI locale was not independently recorded.