PlanMaker MOD and MODP: Remainders and Negative Numbers
Compare MOD and MODP in PlanMaker, including FreeOffice 2024 documentation, signed remainders, zero-divisor errors and Excel export cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
MOD returns a division remainder using the divisor-sign convention: a nonzero result has the same sign as the divisor. For example, =MOD(-10,3) gives 2, since -10 = -4 × 3 + 2.
Availability and version history
- Introduced: Documented by PlanMaker 2021; the original introduction version is not established.
- Free edition: MOD and MODP are documented in the SoftMaker FreeOffice 2024 manual, including their different signed results and the MODP export warning. This is free-edition documentation, not an inference from a paid edition.
- Other documented version: PlanMaker 2026 also documents MOD. This is a supported-version reference, not a final working-version endpoint.
- Scope: The current FreeOffice 2024 manual is not evidence for identical behavior in every historical 2024 build, operating system or mobile edition. No PlanMaker application was run for this guide.
- Checked: FreeOffice documentation checked October 21, 2026, Ontario time; the retained 2026 reference check was October 14. Examples are independently calculated, not native-tested.
Syntax and arguments
=MOD(x, y)
xis the dividend, the number being divided.yis the divisor and must not be zero.- Both arguments are required. The official MOD reference explicitly documents
#DIV/0!for a zero divisor.
Use MOD for repeating cycles, divisibility checks and leftover quantities. Examples use the English manual’s comma separators; adapt entry to the installed formula settings.
Compare positive and negative inputs
Enter these numeric values in A1:B6, with the headings in row 1. Put =MOD(A2,B2) in C2 and fill down to C6.
| Row | A: Dividend | B: Divisor | Expected C result |
|---|---|---|---|
| 2 | 10 | 3 | 1 |
| 3 | -10 | 3 | 2 |
| 4 | 7 | -3 | -2 |
| 5 | -7 | -3 | -1 |
| 6 | 12 | 3 | 0 |
Positive division is familiar: 10 = 3 × 3 + 1. Negative cases use a different integer quotient to preserve the divisor’s sign. For row 4, 7 = (-3) × (-3) + (-2); for row 5, -7 = 2 × (-3) + (-1).
A useful arithmetic identity is x - y*INT(x/y), where INT rounds toward negative infinity. Thus these two formulas agree for the sample inputs:
=MOD(A2,B2)
=A2-B2*INT(A2/B2)
This identity explains the sign rule; it is not a guarantee of identical floating-point edge results for extremely large or finely spaced values.
Example: divide items into full boxes
On a new sheet, put 25 in B2 for items and 12 in B3 for box capacity:
=MOD(B2,B3)
The expected result is 1 leftover item. The complete boxes are =INT(B2/B3), expected 2. Check the count with 2*12+1=25. Require a positive whole-number capacity for this physical packing model.
For a larger collection, copy the item count down a column and keep the capacity fixed using an absolute reference such as $B$3.
Advanced example: a repeating four-position rota
Enter the integers 1 through 8 in D2:D9. In E2, enter and fill down:
=MOD(D2-1,4)+1
Expected positions are 1, 2, 3, 4, 1, 2, 3, 4. Subtracting 1 makes the count zero-based before MOD; adding 1 converts the remainder back to positions 1–4. Without those offsets, the cycle would be 1, 2, 3, 0.
This formula assigns positions only. Store names or tasks separately and use a lookup if you need to turn the position into an assignment.
MOD versus MODP in FreeOffice PlanMaker 2024
The FreeOffice 2024 manual documents a second function:
=MODP(x, y)
Here x is the dividend and y is the divisor; provide both numeric arguments and a nonzero divisor. MODP uses a quotient truncated toward zero. Its nonzero remainder follows the dividend’s sign, whereas MOD follows the divisor’s sign. These are different signed-division conventions, not a reason to label one convention universally wrong.
On a separate blank sheet, enter the following inputs in A1:B5, with headings in row 1. In C2 enter =MOD(A2,B2) and in D2 enter =MODP(A2,B2). Fill both formulas through row 5.
| Row | A: Dividend | B: Divisor | Expected C: MOD | Expected D: MODP |
|---|---|---|---|---|
| 2 | 5 | 3 | 2 | 2 |
| 3 | 5 | -3 | -1 | 2 |
| 4 | -5 | 3 | 1 | -2 |
| 5 | -5 | -3 | -2 | -2 |
These four pairs match the manual’s comparison table. For row 3, truncating 5/-3 toward zero gives -1, so 5 = (-1)*(-3)+2. For row 4, the quotient is also -1, so -5 = (-1)*3+(-2). Changing only the divisor’s sign does not change these MODP remainders; changing the dividend’s sign does.
For a small-input arithmetic check, compare MODP with =A2-B2*QUOTIENT(A2,B2). The QUOTIENT guide explains the truncated integer quotient and reconstruction. This is an explanation of the independently checked integer examples, not a guarantee about extreme floating-point inputs or arbitrary text coercion.
For an exact-multiple control, =MODP(12,3) has expected remainder 0, because 12=4*3+0. The manual explicitly documents =MODP(5,0) as #DIV/0!; that error is not a remainder of zero.
Excel export can remove the formula
SoftMaker’s FreeOffice manual warns that calculations using MODP are replaced by their last calculated result as a fixed value when saved in Excel format. A visible answer may therefore survive while its ability to recalculate does not. Do not substitute MODP casually in a workbook that must remain formula-driven after Excel export.
Keep an original PlanMaker-format copy. If Excel delivery is required, choose the intended sign convention first, then test a suitable formula and inspect the exported cell’s formula bar after reopening. Change an input to check recalculation; simply seeing the expected old number is insufficient. No export/reopen test was performed for this guide, and the manual does not establish every format or build’s behavior here.
The older 2026 MOD reference has a separate prose inconsistency: it prints MOD(7,3) as 2, while its comparison table shows 1. That note concerns the retained 2026 reference, not the FreeOffice example MOD(5,3)=2. The examples above follow the applicable tables and independently checked division identities.
Troubleshooting
#DIV/0!: The divisor is zero. Correct the input; an empty or invalid source may also need inspection, but the function-specific documentation does not define every coercion case.- Unexpected negative sign: Check the divisor. MOD’s remainder follows the divisor-sign convention; a programming language’s
%operator may use a different rule. - Zero remainder: The dividend is an exact multiple of the divisor in ordinary integer arithmetic. It does not mean the quotient is zero.
- Very small decimal remainder: Display sufficient precision and inspect the actual stored values. Avoid assuming exact decimal storage from the displayed format.
- Text or malformed arguments: Use numeric cells and both required arguments. Exact behavior for arbitrary text inputs is not established here.
Related guides
- INT explains the integer-quotient step.
- Microsoft Excel MOD, Google Sheets MOD and LibreOffice Calc MOD provide product-specific comparisons.
- The 12-program comparison tool shows guide coverage, not a guarantee of native function support.
Verification: The FreeOffice 2024 manual’s MOD/MODP sections and the signed comparison table were checked on October 21, 2026, Ontario time. The earlier PlanMaker 2026 references were checked on October 14. All worked results were independently calculated; no native PlanMaker execution, export test, screenshot or downloadable workbook is claimed.