Management & CommerceVery hardBusiness analyst · Excel test

What does =MOD(-7, 3) return in Excel?

  1. A. Minus 1
  2. B. 1
  3. C. Minus 2
  4. D. 2

Correct answer: D. 2

Excel's MOD returns a result with the same sign as the divisor: MOD(n, d) = n − d × INT(n/d) = −7 − 3 × INT(−2.33) = −7 − 3 × (−3) = 2. Languages that truncate towards zero would give −1.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic