I would like to calculate :
End Date (B1)
from a Start Date (A1)
+ Duration (C1) in Working days (without WE & holidays)
BUT
if cell $D$1=1 ,Saterdays are working days too.
WORKDAY function consider only monday to Friday as working days!
How to do it?
This formula assumes the following:
A2 contains the beginning date of the interval
B2 contains the ending date of the interval
C2 contains the day-of-week number (1=Sunday, 2=Monday,...,7=Saturday)
In B2 did you array enter the formula (Ctrl+Shift+Enter) as opposed to a normal Enter? Did you enter a list (array) of holidays for the NETWORKDAYS part of the formula?
Yes for both.
I try the following:
=IF(D1<>1,WORKDAY(A1,C1),A2+NETWORKDAYS(A1,A2)-DATEDIF(A1,A2,"d"+SUM(IF(WEEKDAY(A1-1+ROW(INDIRECT("1:"&TRUNC(A2-A1)+1)))=C2,1,0)))
OK - back to basics in case I've misunderstood your original post -as I said before - do you mean you want to calculate B1 (end date) from A1 (start date) plus a value in C1 (i.e. a number of days) allowing for W/E and hols?
Sorry - most of the boards I post to have a facility to post a HTML version of a spreadsheet - don't know how to do it here. Mail me at chrisjchattin(at)yahoo.co.uk - replace the (at) as required - just stops the spiders
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.