Contact

MOD Function in Apple Numbers: Find remainders and make repeating groups

Mathematical Beginner Apple Numbers

Find division remainders and create rotating groups with MOD with official Apple syntax and reproducible examples.

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

Quick answer: =MOD(-8,3) returns 1. Apple’s remainder convention follows the divisor’s sign, so a negative dividend does not automatically produce a negative remainder.

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; it is not a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official MOD reference. Documentation and independent example checks; no native Numbers test.

Syntax and the remainder identity

=MOD(dividend, divisor)

Both arguments are required numbers. The dividend is the value being divided; the divisor is what divides it. A zero divisor produces a division-by-zero error according to Apple’s reference.

Apple gives the identity MOD(a,b) = a-b*INT(a/b). For a nonzero divisor, this chooses an integer quotient so that the residual has the divisor’s sign or is zero. For −8 divided by 3, the floor of −8/3 is −3, and -8-3*(-3) is 1.

Do not substitute an unrelated programming language’s remainder operator without checking its sign rule. Some definitions choose a quotient truncated toward zero instead of rounded down.

Practice table: packing and signed adjustments

Create a table named Packing, with six columns A:F and six rows. Use Scenario, Items, Pack size, Remainder, Exact packs? and Identity check as A1:F1. Enter the following A:C values:

Row A: Scenario B: Items C: Pack size Expected D Expected E
2 Standard order 7 3 1 FALSE
3 Another order 8 3 2 FALSE
4 Exact packs 15 3 0 TRUE
5 Negative adjustment -8 3 1 FALSE
6 Fractional units 4.5 2 0.5 FALSE

Enter =MOD(B2,C2) in D2, =D2=0 in E2 and =B2-C2*INT(B2/C2) in F2. Fill D2:F2 through row 6. The numeric D and F results should agree for every row.

Seven items in packs of three leave one item after two full packs. Row 5 demonstrates a signed arithmetic adjustment, not a literal negative shipment. Keep the mathematical sign convention separate from a business interpretation of the input.

For fractional quantities, 4.5 equals two groups of 2 plus 0.5. Apple’s additional example =MOD(7,0.75) gives 0.25. Decimal formatting is not a guarantee that every arbitrary floating-point remainder will be exact.

Advanced: a repeating three-team rotation

Create a separate table named Rotation, with four columns A:D and seven rows. Set B1:D1 to Order, Group and Zero-based position. Enter 1, 2, 3, 4, 5, 6 in B2:B7.

Enter =MOD(B2-1,3)+1 in C2 and fill to C7. Expected groups are 1, 2, 3, 1, 2, 3. Enter =MOD(B2-1,3) in D2 and fill to D7; expected positions are 0, 1, 2, 0, 1, 2.

Subtracting one makes the first order’s remainder zero; adding one maps that position to the human-facing group numbers 1–3. This assumes positive consecutive integer orders. If records are deleted or their identifiers are not sequential, decide whether assignment should follow the identifiers or a newly created sequence.

For a separate starting-number variation, create a table named Offset, with three columns A:C and seven rows. Put 101, 102, 103, 104, 105, 106 in A2:A7 and 101 in C2. Enter =MOD(A2-$C$2,3)+1 in B2 and fill to B7. The same six group results follow. Locking C2 preserves the selected origin during fill-down.

Negative divisors and the quotient choice

Create a table named Signs, with four columns and five rows. Enter these numeric pairs in A2:B5 and put =MOD(A2,B2) in C2 and =INT(A2/B2) in D2. Fill C2:D2 through row 5.

Row A: Dividend B: Divisor Expected C Expected D
2 8 3 2 2
3 -8 3 1 -3
4 8 -3 -1 -3
5 -8 -3 -2 2

For row 4, 8=(-3)*(-3)+(-1). The nonzero remainder is negative because the divisor is negative. A quotient function that discards a fraction toward zero is a different operation; use Apple’s documented INT identity when checking MOD’s convention.

Errors and practical limits

  • Zero divisor: =MOD(7,0) is an error, not a zero remainder. Inspect the pack size before interpreting an exact-pack flag.
  • Wrong argument order: Swapping Items and Pack size computes a different remainder.
  • Blank or text quantities: Apple’s signature requires numbers. The page does not establish complete coercion rules for missing fields or number-looking strings.
  • Floating-point effects: Use appropriate tolerances for derived fractional quantities near an exact multiple. The simple integer grouping examples avoid that issue.

In another Numbers table, select the source cells in the formula editor so the generated references retain their table qualifiers. The English examples use commas between arguments; regional decimal settings can require semicolons instead.

Related guides: INT explains the quotient floor; TRUNC illustrates the different toward-zero rule; COUNTIF can count a selected group after assignment. See Apple MOD for the authoritative sign and zero-divisor rules.