I'm trying to auto-calc the end date of semi-monthly payoll. So if the Begin Date (cell A1) is Mar-01 (March 1st), then the End Date (cell A2) would be Mar-15. If the Begin Date (cell A1) is Mar-15, then the End Date (cell A2) would be Mar-31....the last day of the month. And so on for a full year. The formula I am trying is the following:
=IF(A1="MMM-01",DATE(YEAR(A1),MONTH(A1)+1,0),DATE(YEAR(A1),MONTH(A1),15)). The formula works fine if A1 is Mar-01, but it does work if cell A1 is Mar-15.
Can anyone help me?
Thanks, Barbara
ray:
=IF(A1="MMM-01",DATE(YEAR(A1),MONTH(A1)+1,0),DATE(YEAR(A1),MONTH(A1),15)). The formula works fine if A1 is Mar-01, but it does work if cell A1 is Mar-15.
Can anyone help me?
Thanks, Barbara