Explanation

Excel handlesdatesandtimesusing a system in which dates are serial numbers and times are fractional values.

In other words, the time value in a “datetime” is the decimal.

The MOD function returns the remainder from division.

Excel formula: Extract date from a date and time

The first argument is the number and the second is the divisor.

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

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

Excel formula: Round time to nearest 15 minutes

Excel formula: Group times into 3 hour buckets

Excel MOD function