In the worksheet shown, the multiple is 100.

Data validation rules are triggered when a user adds or changes a cell value.

When a custom formula returns TRUE, validation passes and the input is accepted.

Excel formula: Data validation allow numbers only

When the formula returns FALSE, validation fails and the input is rejected.

We can do this with the MOD function.

MOD function

TheMOD functionreturns the remainder of two numbers after division.

Excel formula: Data validation allow text only

The formula used to validate input looks like this:

The value in C5 is 500.

The MOD function divides 500 by 100 and gets 5, with a remainder of zero.

For example, MOD(10,3) = 1.

Excel formula: Count cells between two numbers

The result of MOD carries the same sign as the divisor.

How to create zebra stripes with conditional formatting

Excel formula: Data validation whole percentage only

Excel formula: Highlight every other row

Excel MOD function

Article image