Contact

ABS Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples

Math and Trigonometry Beginner ONLYOFFICE Spreadsheet Editor

Find the unsigned magnitude of a number, including negative balances and measurement deviations.

Verification status: Two numeric-reference magnitude/difference cases checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64; additional examples independently calculated. Other clients and builds untested. How formula examples are checked

ABS returns a number’s magnitude without its sign. ABS(-12) is 12, ABS(7) is 7 and ABS(0) is zero. It is useful for deviations and distances, but removing signs can change the meaning of a total.

Availability and version history

  • Introduced: The original introduction release and date are not established by the checked references.
  • Availability: Documented in current ONLYOFFICE help and observed in Desktop Editors Community 10.0.0.169. This is not a final supported-version endpoint.
  • Scope: Native observations cover Linux x64 only. Docs, mobile, earlier versions and other desktop platforms remain separately untested.
  • Checked: October 14, 2026, against the official ABS reference, pinned source and the explicitly identified native cases. Additional worked results were independently calculated.

Syntax and meaning

=ABS(number)

There is one required number and no optional rounding argument. The official ABS reference defines absolute value. Its illustration uses -123.14 in A1 and =ABS(A1) in C1, displaying 123.14. A fractional magnitude stays fractional.

The same -123.14→123.14 case and ABS(-12-7)=19 were checked in ONLYOFFICE Desktop Editors Community 10.0.0.169 on Linux x64. The other worksheet results below are independently calculated; these two tests do not establish all input-type behavior.

ABS is not the same as multiplying every input by -1: that would make a positive input negative. It also does not round, convert units or decide whether a negative measurement is valid.

Complete signed-change worksheet

Create SignedChanges, using A1:F7. Enter Signed change in A1 and the six inputs below in A2:A7. Put Worked result in B1, and enter each B formula individually:

Row A: signed change Formula in B Expected B
2 -12 =ABS(A2) 12
3 7 =ABS(A3) 7
4 0 =ABS(A4) 0
5 -3.75 =ABS(A5) 3.75
6 2.5 =ABS(A2-A3) 19
7 -8 =ABS(A7)+ABS(A5) 11.75

B6 and B7 deliberately combine earlier inputs. Filling B2 down would overwrite those different expressions. In B6, -12 minus 7 is -19, whose magnitude is 19; B7 adds the separate magnitudes 8 and 3.75.

For a uniform magnitude column, label C1 Magnitude and put =ABS(A2) in C2, then fill through C7. Its outputs are 12,7,0,3.75,2.5,8. C6 is 2.5, unlike B6’s distance calculation.

Advanced: flag a deviation while retaining its direction

Put the numeric tolerance 10 in H1, outside the input block. Label D1 Review status. In D2 enter:

=IF(ABS(A2)>$H$1,"Review","OK")

Fill through D7. Expect Review, OK, OK, OK, OK, OK. The original signed A values remain available, so a flagged record can still be identified as an increase or decrease. IF selects the text label; ABS only supplies the magnitude.

On a separate ToleranceEdges sheet, enter -10.01,-10,0,10,10.01 in A2:A6 and 10 in D1. In B2 enter =IF(ABS(A2)>$D$1,"Review","OK") and fill through B6 for Review, OK, OK, OK, Review.

Exactly ten is accepted because the comparison is strictly greater than the tolerance. Use a nonnegative threshold, and change the comparison deliberately if the business rule includes the boundary.

A net total and total movement answer different questions

Back on SignedChanges, use J2:J5 for these formulas, with labels in I:

Cell Formula Expected result
J2 =SUM(A2:A7) -14.25
J3 =ABS(J2) 14.25
J4 =SUM(C2:C7) 33.25
J5 =J4-J3 19

The signed net is -14.25, while 33.25 measures all movement without cancellation. The magnitude of a sum is generally different from the sum of magnitudes. Using J4 as a net stock adjustment would discard the direction information.

On DistanceCheck, put -12 and 7 in A2:B2. C2 =A2-B2 gives -19, D2 =ABS(A2-B2) gives 19, and E2 =ABS(B2-A2) also gives 19. Reversing the subtraction reverses a signed difference but preserves its distance.

Input types and practical limits

The worked cells contain genuine numbers. The short help entry does not fully specify numeric-text conversion, empty cells, Boolean inputs or every error-propagation rule, and the two native cases do not settle them. A formula stored as text also needs to be re-entered as a formula; a display change alone does not execute it.

Keep units separate from numeric inputs. Taking ABS of an invalid negative area changes the question rather than validating the measurement. When several calculations depend on sign, preserve the original column and use a separate magnitude result.

SUM adds the chosen quantities, INT floors a number and MOD returns a division remainder. Matching function names across programs do not establish identical coercion or extreme-value behavior.