Loading
Feature degradation | Gmail Email delivery failureRead More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          MOD

          MOD

          Returns a remainder after a number is divided by a specified divisor.

          Use

          MOD(number, divisor) and replace number with the field or expression you want divided; replace divisor with the number to use as the divisor.

          Scheduling Example
          Scheduling Example

          MOD(3, 3) returns 0

          MOD(4, 3) returns 1

          MOD(123, 100) returns 23

          To prevent users from scheduling meetings on a Saturday or Sunday, use a validation rule to apply a custom date field called My Date.

          CASE(MOD(My_Date__c - DATE(1900, 1, 7), 7),
          0, 0,
          6, 0,
          1) = 0

          This example displays the following error message when the value of My Date is not Monday through Friday: “My Date is not a weekday.”

           
          Loading
          Salesforce Help | Article