Contact

MOD Function in WPS Spreadsheet: Formula, Examples & Troubleshooting

Math Beginner WPS Spreadsheet

Learn the MOD formula in WPS Spreadsheet: 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 using the divisor’s sign convention. The direct WPS lesson documents the identity n−d*INT(n/d) and a #DIV/0! error for a zero divisor. The original signed examples are retained below.

Availability and version history

  • Introduced: documented by 2019-05-16 in the official WPS lesson; original introduction is not established.
  • Availability: WPS Office for Windows Personal; no numeric release is stated. This is documentation evidence, not a guarantee for a particular installed build.
  • Scope: current supported build limits remain unverified. The Windows lesson does not establish equivalent support in other WPS clients.
  • Checked: October 14, 2026. Function-specific documentation and independent example calculations; no new native WPS test was performed.

Syntax and arguments

=MOD(number,divisor)

number is the dividend and divisor is the nonzero divisor. The dated WPS reference states that a nonzero remainder has the divisor’s sign. A zero remainder has no positive or negative direction to preserve.

Examples use English function names, comma argument separators and numeric controls. Adjust punctuation for the workbook locale without changing the intended values.

Prepare the original controls

The first two formulas use literal values and can be entered in separate blank cells. Later examples specify their own ranges. No unrelated date formatting or practice table is needed.

Example 1: original control

=MOD(-10,3)

Expected result: 2. The remainder has the divisor’s positive sign: -10 = -4×3 + 2.

Example 2: original comparison

=MOD(10,3)

Expected result: 1. Ten divides by three with remainder one.

Example 3: verify all four sign combinations

=MOD(17,5)
=MOD(-17,5)
=MOD(17,-5)
=MOD(-17,-5)

Expected results: 2, 3, −3 and −2. The sign of the divisor controls the nonzero remainder. Do not assume the result follows the dividend’s sign merely because that convention is used by a programming-language remainder operator.

An exact division such as =MOD(20,5) returns 0. The documented zero-divisor control =MOD(20,0) instead has expected error #DIV/0!. This is a vendor-stated error, not a native WPS test result captured for this guide.

Example 4: reconstruct the floor-based identity

For n=−17 and d=5:

=-17-5*INT(-17/5)

Expected result: 3. The downward-rounded quotient is −4, so the reconstruction is −17−5×(−4)=3. The direct WPS INT lesson supplies the relevant downward-integer definition.

By contrast, QUOTIENT removes the quotient’s fractional part. QUOTIENT(−17,5) gives the independently expected integer −3, whose corresponding residual would be −2. Mixing that truncation quotient with MOD’s remainder does not reconstruct −17.

Advanced example: label a repeating three-position cycle

Put sequence numbers 1 through 8 in H2:H9. In I2 enter and fill down:

=MOD(H2-1,3)+1

Expected labels are 1, 2, 3, 1, 2, 3, 1, 2. Subtracting one makes the first source index align with the zero-based remainder; adding one creates the requested one-based label.

Without the subtraction, =MOD(H2,3)+1 would start at label 2 for source index 1. A valid formula can still have the wrong phase, so verify the first few entries before filling a long sequence.

These labels describe a numerical cycle, not an assignment policy for real people or tasks. Keep the starting index and cycle length explicit.

Advanced example: use a nonnegative wrap convention

With positive divisor 3, inputs −1, 0, 1, 2, 3, 4 have expected remainders 2, 0, 1, 2, 0, 1. This maps these integer controls into the interval from zero inclusive to three exclusive.

Changing the divisor to a negative value changes the signed remainder convention. That is a model change, not a harmless formatting choice.

Advanced check: fractional arguments with simple binary values

=MOD(5.5,2)
=MOD(-5.5,2)
=MOD(5.5,-2)

Expected results are 1.5, 0.5 and −0.5 under the documented identity. These half-unit controls avoid introducing an arbitrary decimal midpoint into the demonstration.

They do not establish uniform precision for every decimal input or very large dividend. Keep a justified tolerance for numerical comparisons rather than assuming every mathematically zero residual will be stored as an exact zero in all cases.

Troubleshooting

Check dividend/divisor order, a zero divisor, sign convention and cycle starting offset. Displaying fewer decimal places does not change the stored remainder.

The dated reference directly supports the divisor-sign rule and zero error, but does not establish every imported-text or cross-client coercion case. Keep the source values and use the complete sign table when checking a migrated formula.

Cross-program references and verification

Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric

These are separately researched product guides, not proof of identical current availability, syntax or error behavior.

Evidence level: The complete article was reviewed against the direct product lesson. Original worked formulas, title and publication date are retained. Added results are independently calculated expectations; no native WPS execution is claimed.