In Google Spreadsheet, or excel if its the same, how do I find the last weekday of day D only if D is not a weekday itself.
I.E:
If D equals weekday = do
=WORKDAY("2013-04-06"+1, -1)
...does the trick.