I am trying to include in a macro a variable that contains the most recent workday date, which could be the present date. I have tried using WORKDAY() and WORKDAY.INTL() to try and find the most recent workday. The problem I am trying to solve is if I am on a weekend day, I need to know the most recent work day, which would be the previous Friday. I have tried various forms of
=WORKDAY(TODAY();-1)
=WORKDAY(WORKDAY(date;1);-1)
=WORKDAY.INTL(TODAY();-1)
and I get errors on unmatched parentheses, among other things. Can someone suggest the correct syntax for solving this issue?