Skip to content

MOD function in Excel

MOD returns the remainder after dividing number by divisor.

Syntax

=MOD(number, divisor)
ArgumentRequired?What it is
numberRequiredThe number or cell to work with.
divisorRequiredThe number to divide by.

Example

Start 09:00 and end 17:30: =(C2-B2)*24 returns 8.5 hours.

From the lesson TIME, HOUR and MINUTE.

Common mistakes

  • Forgetting the *24, so 8 hours shows as 0.333.
  • A night shift (22:00 to 06:00) gives a negative number without MOD.
  • Typing 9.30 for half past nine: Excel reads it as a number, not a time. Type 9:30.

Practise MOD in a live spreadsheet

Type the formula yourself and get it graded instantly, no Excel needed.