Skip to content

MOD

Math & trigExcel 2007

The remainder after division.

Syntax

MOD(number, divisor)

Examples

=MOD(A2, 2)

0 for even, 1 for odd

=MOD(ROW(), 3)=0

every 3rd row (for banding)

Related functions

More Math & trig functions

← All 510 functions

Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.