TX Sheet Control

MOD Function

Function

Return the remainder of a division, with the sign of the divisor. number is the dividend and divisor the number to divide by; the result is number - divisor * INT(number / divisor), so MOD(-17,5) returns 3 and MOD(17,-5) returns -3. A divisor of 0 returns #DIV/0!.

Syntax

MOD(number, divisor)

Category: Math. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=MOD(17,5)

The formula returns 2, the remainder of 17 divided by 5.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also