MOD Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the MOD formula in Collabora Office Calc: return the remainder with the divisor sign convention, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: MOD returns the remainder defined by a divisor-based convention. =MOD(-10;3) is expected to return 2, while =MOD(10;3) returns 1. Negative inputs make the convention important.
Availability and version history
- Introduced: documented by Collabora Office 26.04; the original introduction release is not established.
- Availability:
MODis listed in the official 26.04 Calc Help. - Scope: Collabora Office desktop documentation. Support in separately deployed Online or mobile versions has not been verified.
- Checked: October 13, 2026, against Collabora Office 26.04: MOD. Documentation check; not a new native test. Existing example-verification notes retain their original scope.
Syntax and the documented calculation
=MOD(number; divisor)
Supply the dividend and a nonzero divisor. The Collabora reference defines the calculation as:
number-divisor*INT(number/divisor)
That relationship also defines the result for noninteger inputs. INT rounds downward, which explains why MOD can differ from a remainder reconstructed with truncation-toward-zero division.
Use semicolons for these Calc-style formulas. The underlying rule, rather than the punctuation used by another program’s examples, determines whether a transferred formula agrees.
Example 1: preserve both original sign checks
=MOD(-10;3)
=MOD(10;3)
Expected results: 2 and 1. The corresponding decompositions are -10 = (-4)*3+2 and 10 = 3*3+1. With positive divisor three, both remainders lie from zero inclusive to three exclusive.
Do not substitute a programming language’s remainder operator without checking its negative-input rule. Some languages use a convention based on the dividend or truncation toward zero instead.
Example 2: compare all sign combinations
Enter the first two columns in A1:B5 and calculate =MOD(A2;B2) in C2, filling down. The third column below shows expected outputs, not additional inputs.
| Number | Divisor | Expected remainder |
|---|---|---|
| 10 | 3 | 1 |
| -10 | 3 | 2 |
| 10 | -3 | -2 |
| -10 | -3 | -1 |
A nonzero remainder follows the divisor’s sign. A remainder of zero has no positive or negative direction. Check negative divisors separately when reviewing a formula that was originally tested only with positive values.
Example 3: whole packs and leftover units
For 29 units and a pack size of six:
=MOD(29;6)
Expected result: 5 leftover units. Four complete packs use 24. The remainder alone does not return the number of packs; calculate that separately when needed.
This interpretation assumes nonnegative stock and a positive pack size. Negative stock may represent a shortage rather than a count of leftovers, so define its meaning before extending the model to signed quantities.
Advanced example: repeat a four-position cycle
Enter integers 1 through 6 in E2:E7. In F2 enter and fill down:
=MOD(E2-1;4)+1
Expected outputs: 1, 2, 3, 4, 1, 2. Subtracting one first creates a zero-based cycle, then adding one restores labels from one through four.
Without the subtraction, an input of one would map to two. Verify the beginning and wrap boundary explicitly rather than checking only an interior value. This example uses an ordinal counter; changing or sorting the source order changes which record receives each cycle position.
Example 4: fractional inputs
=MOD(5.75;1.5)
Expected result: 1.25. The documented relationship uses INT(5.75/1.5)=3, so the remainder is 5.75-1.5*3.
Decimal quantities can encounter finite-precision effects in preceding calculations. Display a suitable precision and use a justified tolerance when checking identities. Do not assume every mathematically exact decimal remainder is stored as an exact binary value.
Example 5: separate a serial-day fraction
For a controlled numeric serial value in H2 equal to 45000.75:
=MOD(H2;1)
Expected result: 0.75. This is three quarters of a day, or 18 hours. The example deliberately does not assign a calendar date to the integer part because workbook date-base and formatting settings need separate confirmation.
Use this interpretation only when the source really is a numeric date-time serial. Text that resembles a time is a different input type, and negative serial values require particular care under the divisor-based remainder rule.
Troubleshooting and verification
Check the divisor for zero, its sign, units and stored value. An error in an upstream expression is not corrected by calculating a remainder. This article does not claim an executed native zero-divisor error code.
For acceptance testing, record the Collabora version and reproduce all four sign combinations, the pack example, the six-position cycle and the fractional remainder. The complete arithmetic has been independently checked; no target-application execution is claimed.
Related guides and official reference
Related guides already published for this function: Microsoft Excel | Google Sheets | WPS Spreadsheet | LibreOffice Calc | Apache OpenOffice Calc
If a comparison tool says Not researched here, that means we do not yet have a checked guide for that software. It does not mean the software lacks this function. See the 12-program comparison tool for a guide-coverage matrix.
- Collabora Office 26.04: MOD, checked October 13, 2026.
- Editorial testing standards.