Explanation

In the image shown, the current date is August 24, 2019.

Excel dates are serial numbers, so they can be manipulated with simple math operations.

TheTODAY functionalways returns the current date.

Excel formula: Last n days

This is based on aformula described herewhich gets the Monday of the current week.

Once we have that date, we subtract 14 days to get the Monday two weeks prior.

The second logical test simply checks if the date is less than Monday in the current week.

Excel formula: Last n months

when both results are TRUE, the AND function will return TRUE.

If either result is FALSE, the AND function will return FALSE.

AND returns TRUEonly if all the conditions are met.

Excel AND function

If any conditions are not met, the AND function returns FALSE.

The TODAY function takes no arguments.

you’re able to format the value returned by TODAY with a datenumber format.

Excel TODAY function

By default, WEEKDAY returns 1 for Sunday and 7 for Saturday, but this is configurable.

you could use the WEEKDAY function inside other formulas to check the day of week.

Excel WEEKDAY function