Contact

SIGN in Collabora Office: Classify Positive, Negative and Zero Values

Math Intermediate Collabora Office

Use SIGN in Collabora Office Calc to classify direction, reconstruct magnitudes and apply a deliberate zero tolerance.

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

Quick answer: SIGN returns 1 for a positive number, -1 for a negative number and 0 for zero. =SIGN(-8) is expected to return -1; the magnitude eight is not preserved in the result.

Availability and version history

  • Introduced: documented by Collabora Office 26.04; the original introduction release is not established.
  • Availability: SIGN is documented in the official 26.04 Calc Help.
  • Scope: desktop Calc documentation; separately deployed Online and mobile versions have not been verified.
  • Checked: October 13, 2026, against the official SIGN reference. Documentation check; not a native application test. Expected examples are independently calculated.

Syntax and meaning

=SIGN(number)

The official Collabora reference defines the three possible results. SIGN classifies a numeric value; it does not round it, count it or calculate its absolute value.

The examples use numeric inputs in worksheet cells. Text that looks numeric, logical values and upstream errors need their own data-type checks. This guide does not infer a full conversion/error table from the function’s three-result definition.

Example 1: compare magnitudes with the same sign

Enter these inputs in A2:A7 and fill =SIGN(A2) down column B:

Input Expected SIGN
-20 -1
-0.25 -1
0 0
0.25 1
20 1
1000 1

The final three rows all return one even though their magnitudes differ considerably. That loss of magnitude is intentional. Do not interpret a total of SIGN values as the total original quantity.

For example, a positive change of 1000 and a negative change of 1 produce signs that sum to zero, even though their net numeric change is 999.

Example 2: label the direction of a change

Put 80 in D2 for the earlier quantity and 95 in E2 for the later quantity:

=SIGN(E2-D2)

Expected result: 1. The difference is positive. Reversing the inputs gives −1; making both inputs 80 gives zero.

A descriptive label can make that code easier to read:

=IF(SIGN(E2-D2)>0;"Increase";IF(SIGN(E2-D2)<0;"Decrease";"Unchanged"))

With the original inputs the expected text is Increase. This is a direction classification, not a percentage calculation. If the baseline can be zero or negative, define percentage-change rules separately.

Example 3: relate sign and absolute magnitude

For any finite numeric value x in the small example table, x*SIGN(x) is its nonnegative magnitude. With −8:

=-8*SIGN(-8)

Expected result: 8. With zero, both the sign and the product are zero. The dedicated ABS function is usually clearer when magnitude alone is the goal; this identity explains how sign and magnitude relate.

Do not reverse the relationship by dividing by SIGN at zero, because that would introduce division by zero. A valid multiplication identity does not imply an unrestricted division formula.

Advanced example: define a deliberate near-zero band

A model may treat changes smaller than 0.01 in absolute magnitude as immaterial. For a numeric change in G2:

=IF(ABS(G2)<0.01;0;SIGN(G2))

For G2 equal to −0.005, 0.02 and −0.02, the expected outputs are 0, 1 and −1, respectively. At exactly 0.01 or −0.01, the strict less-than comparison does not enter the zero branch, so the outputs are 1 and −1.

The tolerance comes from this model, not from SIGN. Choose it from the measurement scale and intended decision rule. Adding an arbitrary tolerance solely to hide an unexpected result can conceal an upstream error.

Example 4: distinguish agreement from net magnitude

For two nonzero changes −3 and −7:

=SIGN(-3)*SIGN(-7)

Expected result: 1, indicating matching signs. With −3 and 7 the result is −1, indicating opposite signs. If either input is zero, the product is zero and needs a separate interpretation.

These comparisons do not measure correlation or establish a trend from a dataset. They describe only the signs of the two supplied values.

Troubleshooting and verification

If a value displayed as zero returns −1 or 1, show more decimals and inspect the stored calculation. Number formatting can conceal a small nonzero result; SIGN evaluates the value, not its printed appearance.

For native verification, record the application build and reproduce the table, change label, magnitude identity and tolerance boundaries. All expected results are independent arithmetic against the documented definition; none is a native Collabora observation.

Official reference