When the date in B4 equals the start date, DATEDIF returns zero.

On the next month, DATEDIF returns 1, and so on.

This effectively starts the numbering pattern at 3 instead of zero.

Excel formula: Fixed value every N columns

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

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

The DATEDIF (Date + Dif) function is a “compatibility” function that comes from Lotus 1-2-3.

Excel formula: Highlight every other row

Excel won’t help you fill out the arguments for DATEDIF like other functions, but it will work…

Excel formula: Sum every nth column

Excel formula: Copy value from every nth row

Excel MOD function

Excel DATEDIF function