Formulas and Functions Help
- Welcome
-
- ACCRINT
- ACCRINTM
- BONDDURATION
- BONDMDURATION
- COUPDAYBS
- COUPDAYS
- COUPDAYSNC
- COUPNUM
- CUMIPMT
- CUMPRINC
- CURRENCY
- CURRENCYCODE
- CURRENCYCONVERT
- CURRENCYH
- DB
- DDB
- DISC
- EFFECT
- FV
- INTRATE
- IPMT
- IRR
- ISPMT
- MIRR
- NOMINAL
- NPER
- NPV
- PMT
- PPMT
- PRICE
- PRICEDISC
- PRICEMAT
- PV
- RATE
- RECEIVED
- SLN
- STOCK
- STOCKH
- SYD
- VDB
- XIRR
- XNPV
- YIELD
- YIELDDISC
- YIELDMAT
-
- AVEDEV
- AVERAGE
- AVERAGEA
- AVERAGEIF
- AVERAGEIFS
- BETADIST
- BETAINV
- BINOMDIST
- CHIDIST
- CHIINV
- CHITEST
- CONFIDENCE
- CORREL
- COUNT
- COUNTA
- COUNTBLANK
- COUNTIF
- COUNTIFS
- COVAR
- CRITBINOM
- DEVSQ
- EXPONDIST
- FDIST
- FINV
- FORECAST
- FREQUENCY
- GAMMADIST
- GAMMAINV
- GAMMALN
- GEOMEAN
- HARMEAN
- INTERCEPT
- LARGE
- LINEST
- LOGINV
- LOGNORMDIST
- MAX
- MAXA
- MAXIFS
- MEDIAN
- MIN
- MINA
- MINIFS
- MODE
- NEGBINOMDIST
- NORMDIST
- NORMINV
- NORMSDIST
- NORMSINV
- PERCENTILE
- PERCENTRANK
- PERMUT
- POISSON
- PROB
- QUARTILE
- RANK
- SLOPE
- SMALL
- STANDARDIZE
- STDEV
- STDEVA
- STDEVP
- STDEVPA
- TDIST
- TINV
- TTEST
- VAR
- VARA
- VARP
- VARPA
- WEIBULL
- ZTEST
- Copyright
![](https://help.apple.com/assets/6467B9B3CF36103D3A318861/6467B9B8CF36103D3A318879/en_US/784be3dfed809d4b6bb7cc427d8c5f01.png)
MOD
The MOD function returns the remainder from a division. Both arguments are number values.
MOD(dividend, divisor)
dividend: A number to be divided by another number.
divisor: A number to divide into another number. If divisor is 0, a division by 0 results and the function returns an error.
Notes
The sign of the result matches that of the divisor.
When computing MOD(a, b), MOD gives a number r such that a = bk + r, where r is between 0 and b, and k is an integer.
MOD(a, b) is equivalent to a–b*INT(a/b).
Examples |
---|
=MOD(6, 3) returns 0, because 6 divided by 3 is exactly 2. =MOD(7, 3) returns 1, the remainder when 7 is divided by 3. =MOD(8, 3) returns 2, the remainder when 8 is divided by 3. =MOD(-8, 3) returns 1, because -8 divided by 3 is -3 with a remainder of 1. (The number nearest to, but less than -8 that is evenly divided by 3 is -9). =MOD(4.5, 2) returns 0.5, the remainder when 4.5 is divided by 2. =MOD(7, 0.75) returns 0.25. MOD(7, 0.75) is equivalent to 7 - 0.75*INT(7/0.75), which equals 7 - 0.75*9. |