Discussion Locked

Excel Formulas

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Need formula that will return previous days date when spreadsheet is opened. Can do that with =Today()-1. What I haven't been able to figure out is getting Monday to open with Friday's date. Don't want weekend dates to calculate.

4 replies

by dklippert

With the Analysis Toolpak installed try something like:
=IF(WEEKDAY(TODAY(),2)=1,TODAY()-3,TODAY()-1)
If the weekday is 1 (Monday) subtract 3 from the date, otherwise subtract 1.

by roc180

Use the following:

=IF(WEEKDAY(TODAY())=2,TODAY()-3,TODAY()-1)

The WEEKDAY functions checks to see if its Monday and if it is sets the date to friday.

Good Luck
Neal Martinelli

by lf king

Thanks Neal. I got to the point where I knew I needed to combine weekday and today functions, but wasn't sure how.

This discussion is closed to new replies.