Contact

MOD in Zoho Sheet: Remainders, Negative Numbers, and Cyclic Groups

Mathematical Intermediate Zoho Sheet

Find division remainders, understand signs with negative divisors, and create repeating assignment groups.

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

MOD returns the remainder of integer division. For 25 divided by 12, =MOD(25;12) gives 1. Zoho documents the divisor-sign convention: =MOD(-23;5) gives 2, whereas =MOD(25;-2) gives -1.

A remainder is different from a quotient or a complete-group count. The sign convention also differs from some programming-language remainder operators.

Availability and version history

  • Introduced: The original introduction release and date are not established by the checked sources.
  • Availability: Currently documented in Zoho Sheet’s rolling web-service help; no retirement endpoint is established.
  • Scope: English web-service documentation. Exact mobile and offline-client parity is unverified.
  • Checked: October 14, 2026, against the official MOD reference. Examples were independently calculated; no native Zoho Sheet test was performed.

Syntax, sign and a zero divisor

MOD(number; divisor)

Both inputs are required. Zoho’s MOD reference describes integer operands, gives the divisor’s sign to a nonzero result and explicitly lists #DIV/0! when the divisor is zero. Exact multiples have remainder zero.

The same entry gives the identity number-divisor*INT(number/divisor). INT must floor the quotient; replacing it with toward-zero truncation changes signed cases. The syntax line uses semicolons while the entry’s example formulas use commas; follow the separator accepted by your sheet rather than treating that typography difference as an arithmetic rule.

The source’s integer framing is retained here. Decimal operands, extreme values and undocumented import coercions remain outside these worked cases.

Complete signed-value practice data

Create a blank sheet named SignedValues, leaving columns A:L and rows 1–12 available. Enter ID, Variance, Units and Divisor in A1:D1, then type all eight records below. B:D contain numbers. You can enter the complete manual table below or use the original download with the separate-sheet import steps that follow.

Row A: ID B: Variance C: Units D: Divisor
2 R01 -14.75 25 12
3 R02 8.20 -23 5
4 R03 0 442 12
5 R04 -3.60 25 -2
6 R05 12.49 17 5
7 R06 25.00 -17 -5
8 R07 -0.04 12 0
9 R08 5.20 8 3

Alternatively, download the original five-column practice CSV into a separate blank sheet named RawPractice, beginning at A1 with the comma delimiter and header row retained. It contains A:ID, B:Variance, C:Units, D:Divisor and E:Context. Keep B:D numeric. The Context column contains explanatory text, not an extra formula input.

Preserve RawPractice intact. Copy only A1:D9 from it to the blank SignedValues sheet at A1. Do not copy Context into SignedValues E, because the formulas below use E onward for results. The download contains inputs only, not formulas or native test outputs.

Keep A:D unchanged when entering results in the specified columns. The zero divisor in D8 is intentional. It is unrelated to the valid numeric zero in B4. Number formatting can show trailing zeros without changing the stored value.

Remainders and complete reconstruction

Put Remainder in E1 and enter =MOD(C2;D2) in E2. Fill through E9. Enter =IF(D2=0;"Fix divisor";MOD(C2;D2)) in F2 and fill through F9 for a separate guarded result.

Row Expected E Expected F
2 1 1
3 2 2
4 10 10
5 -1 -1
6 2 2
7 -2 -2
8 #DIV/0!, documented Fix divisor
9 2 2

The guard gives the zero-divisor row its own formula. It does not repair the input or establish that suppressing a hard error is appropriate for every report.

For rows 2–7 and 9 only, put =INT(C2/D2) in G2, =C2-D2*G2 in H2 and =D2*G2+E2 in I2. Fill G2:I2 through row 7, then copy G2:I2 to G9:I9. Leave G8:I8 empty because D8 is zero.

Row G: Floored quotient H: Reconstructed remainder I: Reconstructed dividend
2 2 1 25
3 -5 2 -23
4 36 10 442
5 -13 -1 25
6 3 2 17
7 3 -2 -17
9 2 2 8

For 25/-2, the floored quotient is -13. The reconstruction is (-2)×(-13)+(−1)=25. A quotient truncated to -12 would instead leave one, contradicting the documented negative-divisor result.

Advanced: repeat three assignment labels

Create CycleLabels, with four columns A:D and eleven rows. Enter integer IDs 25,26,27,28,29,30,31,32,33 in A2:A10. In B2 enter =MOD(A2-1;3)+1 and fill through B10. Expect 1,2,3,1,2,3,1,2,3.

The offset before and after MOD changes zero-based remainders into labels one through three. In C2 enter =MOD(A2+3-1;3)+1 and fill through C10; it gives the same labels because adding a complete cycle does not change the remainder. In D2 enter =C2-B2 and fill through D10 for zeros.

This assignment model uses positive integer IDs. It does not define a policy for missing, duplicate, negative or noninteger identifiers. Do not mistake the arithmetic label for a unique record ID.

Test multiples without losing the original dataset

In J2 enter =MOD(C2;5)=0 for TRUE, because C2 is 25. In J3 enter =MOD(C6;5)=0 for FALSE, because C6 is 17. In J4 use =INT(C2/D2) for 2, the complete-group count, and in J5 use =MOD(C2;D2) for 1, the leftover count.

For a signed comparison, create SignedRemainders and enter these number/divisor pairs in A2:B5: 23/5,−23/5,23/−5,−23/−5. In C2 enter =MOD(A2;B2) and fill through C5; expect 3,2,−2,−3. In D2 enter =A2-B2*TRUNC(A2/B2) and fill through D5; expect 3,−3,3,−3.

The two models agree for the same-sign pairs here and differ for the opposite-sign pairs. The D expression is an independent truncation-remainder comparison, not a replacement definition of Zoho MOD.

Errors, stored types and portability

Zoho’s general error table lists #NAME! for invalid function or defined names, #VALUE! for invalid argument types and #REF! for invalid references. It also includes generic lookup-related #N/A! prose; that does not turn this function into a lookup. Those shared descriptions do not establish a complete coercion or error-propagation rule for every imported value.

Use genuinely numeric inputs, with units or status labels in separate cells. The formulas follow Zoho’s published semicolon notation for multiple arguments; use the separators accepted by your sheet’s locale. Matching function names elsewhere do not establish identical blank, numeric-text, precision or array behavior. No screenshots or cross-product execution are claimed.

INT provides the documented quotient rule; TRUNC explains the different comparison. IF supplies the guard, while ABS removes a sign without doing division.