Can some one please help me find a way to take a date in a previous row and
get to the same date one month ago. I do not know how to account for the 30
or 31 day discrepancy. Also, if possible could it be the last business day
one month ago. Thank you very much
Target date in A1:
One Month Back:
=edate(A1,-1)
One Month Back, adjusted to either the closest or subsequent business day:
Preceding business day:
=workday(edate(A1,-1)+1,-1)
Subsequent business day:
=workday(edate(A1,-1)-1,1)
Last business day of the preceding month:
=workday(A1-DAY(A1)+1,-1)
-------------------------
If the WORKDAY and EDATE functions are not available, and returns the #NAME?
error, install and load the Analysis ToolPak add-in.
How?
On the Tools menu, click Add-Ins.
In the Add-Ins available list, select the Analysis ToolPak box, and then click
OK.
If necessary, follow the instructions in the setup program.
--------------------------
The WORKDAY function has an optional HOLIDAYS argument to exclude Holidays.
See HELP for details as to how to use it. Briefly, you enter a list of dates
in a range, and add that reference to the formula.
--ron