{"id":1207,"date":"2018-07-02T17:03:52","date_gmt":"2018-07-02T17:03:52","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1207"},"modified":"2023-11-03T10:18:38","modified_gmt":"2023-11-03T10:18:38","slug":"mod","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/functions\/mod\/","title":{"rendered":"MOD function"},"content":{"rendered":"\n
Excel MOD Function is a mathematical function used to find the remainder when one number is divided by another. It can be a helpful tool for various applications, such as calculating cyclic patterns or distributing items evenly.<\/p>\n\n\n\n
MOD(number, divisor)<\/strong><\/p>\n\n\n\n To use the Excel MOD function, follow the syntax: MOD(number, divisor). Here are some examples to illustrate its use:<\/p>\n\n\n\n Example 1:<\/strong> Finding the Remainder<\/p>\n\n\n\n In this example, MOD(17, 5) returns 2 because when you divide 17 by 5, you have a remainder of 2.<\/p>\n\n\n\n Example 2:<\/strong> Handling Negative Numbers<\/p>\n\n\n\n Even with negative numbers, MOD(-10, 3) will return 2, as it still calculates the remainder.<\/p>\n\n\n\n Example 3:<\/strong> Handling Fractions<\/p>\n\n\n\n MOD(11.5, 3) returns 2.5, as it can handle decimal numbers and provide the remainder.<\/p>\n\n\n\n Example 4:<\/strong> Handling Zero Divisor<\/p>\n\n\n\n If you attempt to divide by 0, Excel will return a #NUM! error, as division by zero is undefined.<\/p>\n\n\n\n Example 5:<\/strong> Using MOD in Conditional Formatting<\/p>\n\n\n\n You can use MOD in Excel’s Conditional Formatting to create alternating row colors in a table. For instance:<\/p>\n\n\n\n This formula will format every other row with a different color, creating a striped pattern.<\/p>\n\n\n\n MOD is a versatile function for calculating remainders. It can be particularly useful in scenarios like scheduling, where you need to distribute tasks evenly or in cyclic patterns.<\/p>\n","protected":false},"excerpt":{"rendered":" Excel MOD Function is a mathematical function used to find the remainder when one number is divided by another. It can be a…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[180],"yoast_head":"\nArguments<\/h2>\n\n\n\n
number<\/strong><\/td> The numeric value for which you want to find the remainder after division.<\/td><\/tr> divisor<\/strong><\/td> The numeric value you want to use as the divisor.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n How to Use<\/h2>\n\n\n\n
=MOD(17, 5)<\/code><\/pre>\n\n\n\n
=MOD(-10, 3)<\/code><\/pre>\n\n\n\n
=MOD(11.5, 3)<\/code><\/pre>\n\n\n\n
=MOD(10, 0)<\/code><\/pre>\n\n\n\n
=MOD(ROW(), 2) = 0<\/code><\/pre>\n\n\n\n
Additional Information<\/h2>\n\n\n\n