Hi mrdod,
The MOD function returns the remainder after divising one number by another. Thus, 13 MOD 10 (or MOD(13,10) in Excel parlance) is 3. If the number divides exactly, the remainder is 0.
All Date values in Excel are just numbers which, when divided by 7 leave a remainder (0=Saturday to 6=Friday). Thus MOD(Date,7) returns the day of the week, with 0 being Saturday. If I deduct the raw MOD value from today's date, I'll get the most recent Saturday.
What I wanted to do in this case, was to find the most recent Monday. So, I needed to make Monday return 0 from the MOD function. Since the MOD value for Monday is 2, MOD(Date-2,7) returns 0 for Monday.
It's then just a simple matter to deduct the MOD result from the date to return the most recent Monday.
Cheers
[MS MVP - Word]