{"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

Syntax<\/h2>\n\n\n\n

MOD(number, divisor)<\/strong><\/p>\n\n\n\n

Arguments<\/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

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

=MOD(17, 5)<\/code><\/pre>\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

=MOD(-10, 3)<\/code><\/pre>\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)<\/code><\/pre>\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

=MOD(10, 0)<\/code><\/pre>\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

=MOD(ROW(), 2) = 0<\/code><\/pre>\n\n\n\n

This formula will format every other row with a different color, creating a striped pattern.<\/p>\n\n\n\n

Additional Information<\/h2>\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":"\nMOD function<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/functions\/mod\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MOD function\" \/>\n<meta property=\"og:description\" content=\"Excel MOD Function is a mathematical function used to find the remainder when one number is divided by another. It can be a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/functions\/mod\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-02T17:03:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-03T10:18:38+00:00\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"MOD function\",\"datePublished\":\"2018-07-02T17:03:52+00:00\",\"dateModified\":\"2023-11-03T10:18:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/\"},\"wordCount\":236,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"keywords\":[\"done\"],\"articleSection\":[\"functions\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/\",\"url\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/\",\"name\":\"MOD function\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"datePublished\":\"2018-07-02T17:03:52+00:00\",\"dateModified\":\"2023-11-03T10:18:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/functions\/mod\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mod\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MOD function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MOD function","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/functions\/mod\/","og_locale":"en_US","og_type":"article","og_title":"MOD function","og_description":"Excel MOD Function is a mathematical function used to find the remainder when one number is divided by another. It can be a...","og_url":"https:\/\/officetuts.net\/excel\/functions\/mod\/","article_published_time":"2018-07-02T17:03:52+00:00","article_modified_time":"2023-11-03T10:18:38+00:00","author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"MOD function","datePublished":"2018-07-02T17:03:52+00:00","dateModified":"2023-11-03T10:18:38+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/"},"wordCount":236,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"keywords":["done"],"articleSection":["functions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/","url":"https:\/\/officetuts.net\/excel\/functions\/mod\/","name":"MOD function","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"datePublished":"2018-07-02T17:03:52+00:00","dateModified":"2023-11-03T10:18:38+00:00","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/functions\/mod\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/functions\/mod\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"MOD function"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1207"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=1207"}],"version-history":[{"count":3,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1207\/revisions"}],"predecessor-version":[{"id":16496,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1207\/revisions\/16496"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=1207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=1207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}