how to remove saturday and sunday when calculating start dates
Hi Everyone,
Am actually working with a lot of data where i need to calculate targets based on the previous events. The problem when the dates are being calculated it taking saturday and sunday also which i don't want as all the events shall happen on the week days.
i have been using this formula till now : =IF(C5="","",IF(TEXT(C5+5,"DDD")="SAT",C5+7,C5+5)) but the problem am unable to add the if statement for SUN as am getting error.
i would appreciate if i can get some help here either by doing it with VBA, User Defined fucntion ( as there are almost 3000 rows to analyse) or by formula itself. i have try weekdays, networkdays but did not get the results till now.
thank you both. Am trying the method shown by P45cal and will let you know te outcome after placing them in the main file. P45Cal can you give an example of the Workday.Intl as i have tried but did not get the results as everytime am getting errors. suppose the data in In cell G5:
=IF(E5="","",IF(F5="",WORKDAY(E5,PPS_Sending_Date),IF(F5<>"",WORKDAY(F5,PPS _Sending_Date)))) it considered Saturday as an approve date how do you assign it.
Hi P45Cal, thank you very much for the quick reply, what i wanted to say was suppose for cell I5 saturday is accepted as a normal day and its only sunday which is not accepted and shall be +1 or +2 depending on the last working days. how do you assign it please sir.
Thank you very much its works very well. The only thing now i see is even if the dates are week days like Thu-25-Apr its keeps addding 1 day ahead that is it makes it Fri-26-Apr. can we omit that as otherwise it make all analyse false and do not keep the flow of follow up.
P45Cal : as usual you have been a great help on all my work project. thank you for all sir. Even to the whole community without this community i would have been where i am today. thank you all.
Am attaching the file below as you can see on M7 the date shall have been Tue-23-Apr but it showing Thu-25-Apr and also i have used the formula workday only in cell S5 still it keep adding 1 more day that is instead of Mon-25-03 it shows Tue-26-03.See the attached file for better understanding.
is the formula am using for M7 is =IF(K7="","",IF(L7="",WORKDAY.INTL(K7+OF_Date,1),IF(L7<>"",WORKDAY.INTL(L7+ OF_Date,1))))
and the formula am using in S5 is =WORKDAY(R5,1)
all these are in sheet 3
I suspect you aren't using the function properly; the likes of your:
WORKDAY.INTL(K7+OF_Date,1)
might have to be:
WORKDAY.INTL(K7,OF_Date,1)
Look at the help for the function: https://support.office.com/en-us/art...rs=en-US&ad=US
p45cal Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.