Date problem--still can't deal with holidays---to Aladin
Posted by Thomas on November 01, 2001 6:35 AM
Thanks for helping me develop this formula.
But the first workday function doesn't deal with holiday issue. For instance, A1 is 11/6/01, B1 is 16, I want to know the result shows the date of 16 days later. If it falls on the weekend or holiday.It will automatically post pone to the following business day. In this case, the result falls on 11/22/01 which is a holiday(Thanksgiving,Thursday). How do I modify the foumula that will shows the result as a right answer? Thanks?
Thomas
=WORKDAY(DATE(YEAR(A1),MONTH(A1),DAY(A1)+$B$1),0,HOLIDAYS)+IF(WEEKDAY(WORKDAY(DATE(YEAR(A1),MONTH(A1),DAY(A1)+$B$1),0,HOLIDAYS),2)=6,2,IF(WEEKDAY(WORKDAY(DATE(YEAR(A1),MONTH(A1),DAY(A1)+$B$1),0,HOLIDAYS),2)=7,1,0))
P.S. It seems if we use '0' as a variable, the formula doesn't work for workday function.