Home> Topics> excel> body text

What is the use of mod function in excel?

Release: 2020-05-12 17:07:22
Original
9611 people have browsed it

What is the use of mod function in excel?

The mod function is a remainder function, its format is: mod(nExp1,nExp2), which is the remainder after dividing two numerical expressions. The sign of the result is the same as the divisor.

Syntax

MOD(number, divisor)
Copy after login

MOD function syntax has the following parameters:

  • Number Required. The dividend to be calculated as the remainder.

  • Divisor Required. divisor.

Note:

If the divisor is 0, MOD returns #DIV/0! .

MOD function can be expressed by borrowing INT function:

MOD (n,d) = n-d * INT (n/d)
Copy after login

Example:

MOD(3, 2) is equal to 1

MOD(-3, 2 ) is equal to 1

MOD(3, -2) is equal to -1

MOD(-3, -2) is equal to -1

MOD(-3, 0) is equal to -3

MOD(3, 0) is equal to 3

MOD(2, 0) is equal to 2

MOD(4, 3) is equal to 1

Recommended learning:Excel Basic Tutorial

The above is the detailed content of What is the use of mod function in excel?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!