Hi malbarki,
Assuming your start date is in A1, put this formula in B1 --> =A1+3/24
Cheers,
BD
Assume the Start date/Time is in B2
SLA is in B4
You could use something like: =IF(RIGHT(B4,1)="W",B2+7*LEFT(B4,(LEN(B4)-1)),IF(RIGHT(B4,1)="D",B2+LEFT(B4,LEN(B4)-1),IF(RIGHT(B4,1)="H",B2+LEFT(B4,LEN(B4)-1)/24,IF(RIGHT(B4,1)="M",B2+LEFT(B4,LEN(B4)-1)/(60*24),1))))
This allows you top use Weeks, Days, Hrs and Minutes in the SLA
Hi malbarki,
I had hardcoded the 3 hrs SLA. In the same example you provided, change the C1 formula as =A1+B1/24
I have no clue about it. It will be helpful if you can upload a file with the desired results as an example in one of the columns. Here is how I have used. Cross reference to it and let me know what I am missing.
Glad to help
Hi malbarki,
Please have a look of attached file. Is this the solution you required.
I had used below array formula to get it. Note: CTRL+SHIFT+ENTER is required after entering the formula in cell.
=INT($A2)+IF(($B2/9)=1,0,INT($B2/9))+SUMPRODUCT(IF((ROW(INDIRECT(INT($A2)&":"&(INT($A2)+INT($B2/9))))=Holiday)+(WEEKDAY(ROW(INDIRECT(INT($A2)&":"&(INT($A2)+INT($B2/9)))),2)=6),1,0))+SUMPRODUCT(IF(WEEKDAY(ROW(INDIRECT(INT($A2)&":"&(INT($A2)+INT($B2/9)))),2)=5,1,0))+SUMPRODUCT(IF(OR(MOD($A2,1)>(17/24),MOD($A2,1)<(0/24)),1,0))+IF(OR(MOD($A2,1)>(17/24),MOD($A2,1)<(8/24)),$G$2+MOD($B2,9)/24,IF(TIME(HOUR($A2),MINUTE($A2),SECOND($A2))+TIME(MOD($B2,9),MOD(MOD($B2,9),1)*60,0)>$H$2,$G$2+TIME(HOUR($A2),MINUTE($A2),SECOND($A2))+TIME(MOD($B2,9),MOD(MOD($B2,9),1)*60,0)-$H$2,TIME(HOUR($A2),MINUTE($A2),SECOND($A2))+IF($B2=9,9/24,TIME(MOD($B2,9),MOD(MOD($B2,9),1)*60,0))))
Just advise if any issue.
Regards!
Hey malbarki,
I know the enteries that you pointed out, thats why I said the job would have been lot easy if you would have using 2010. If you evalute the formula you will notice that for each type of cases such as if the task start after 17:00 hrs or after 00:00 hrs and before 8:00 hrs they had been accounted by sumproduct or some +. Now the problem is with those enteries where a task is starting on a holiday or ending on a holiday. To consider those I/you may need to put a BIG If in this formula. I will give it a try tommorow meantime you can try it.
May be some experts persons out here help you out on this to reduce it to a smaller version.
Since your weekends are not Saturday & Sunday we cannot use WORKDAY function that would have cut all the SUMPRODUCT portions.
And no special purpose of start & end time refrence through a cell. Just wanted to make it more dynamic if somebody changes the time then no need to find those value in such big formula because inside formula they will not be typed as 17:00 or 8:00 but some thinglike 17/24 or 8/24, so it will be hard. That's it.
Regards!