# turn around time calculation

#### rammergu

##### New Member
hi,
i want to calculate the TAT between two times. the TAT target is <= 2 hours. i used the following formula
b1 has 7:08 AM (received time)
c1 has 3/13/2009 (completed date)
d1 has 9:08 AM (completed time)
e1 has TAT formula :- '=IF((D1-B1)*1440<=120,"Met TAT","Not Met TAT")

however this formula does not work in the following conditions.

In these conditions, it is considered that TAT is met.
1. When the difference in time is <=2 hours .... for TAT calculation, on working days and working hours are taken into consideration.

To illustrate.
Day begins : 8:00 AM
Day ends : 4:00 PM

If job is received at 3:30 PM and completed the next working day by 9:30 AM, then it is considered TAT is met.
calculation = 4:00 PM - 3:30 PM = half hour + next day's 9:30 AM - 8:00 AM = 1.5 hours, therefore, total working hours used to complete the job is within the agreed TAT.

If job is received and completed on non working days and during non working hours, it is considered TAT met.

If job is received almost at the end of the day, say, 3.30 PM and job is completed at 8:00 PM same day, then it is considered TAT met, rationale, only half an hour of working hours used to complete the job.

Any suggestion to build upon my formula is greatly appreciated.

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

##### Well-known Member
Small amendment:
Excel Workbook
ABCDE
11-Mar-0914:091-Mar-0916:54Not met
22-Mar-0912:382-Mar-0914:19Met
33-Mar-0915:474-Mar-098:07Met
44-Mar-0915:305-Mar-098:18Met
54-Mar-099:404-Mar-0910:34Met
64-Mar-099:074-Mar-0911:01Met
75-Mar-0913:325-Mar-0915:28Met
86-Mar-0915:599-Mar-098:27Met
96-Mar-0915:529-Mar-0910:25Not met
109-Mar-098:299-Mar-0910:19Met
119-Mar-098:189-Mar-0910:19Not met
1210-Mar-098:5910-Mar-0911:02Not met
1310-Mar-0912:4410-Mar-0915:41Not met
1411-Mar-0915:4612-Mar-099:02Met
1511-Mar-099:4611-Mar-0910:47Met
1612-Mar-0915:0513-Mar-098:28Met
1713-Mar-0914:0113-Mar-0915:32Met
1816-Mar-0910:2216-Mar-0912:50Not met
1917-Mar-099:1717-Mar-0910:44Met
2017-Mar-099:3917-Mar-0910:27Met
Sheet2

#### rammergu

##### New Member

I found a solution that is similar to my question and it meets my need perfectly, The link to the solution is below for your reference.

=(NETWORKDAYS(A2,B2,\$J\$4:\$J\$10)-1)*(J\$3-J\$2)+IF(NETWORKDAYS(B2,B2,\$J\$4:\$J\$10),MEDIAN(MOD(B2,1),J\$3,J\$2),J\$3)-MEDIAN(NETWORKDAYS(A2,A2,\$J\$4:\$J\$10)*MOD(A2,1),J\$3,J\$2)

Regards,
Ram

#### ratishleo

##### New Member
Sir, your post was very much helpful for me. but my only doubt is for the desired turn around time <= 2 hrs you have substituted (D1-B1)*1400<=120 in the formula. I didn't understand the logic behind that so that I can apply the same for desired turnaround time of <= 4 hrs.
Looking forward for your reply and help. I am an MBA student of VIT University doing my internship project at TAFE, My email Id is ratish.ratheesh.t@gmail.com.
Thank You Sir!!

#### suru1525

##### New Member
I have a question. pls solve this. i need a simple formula for below.

 S.NO VEH NO. IN DATE IN TIME Out DATE Out time TAT 1 23346-FUJ 01.11.2017 1:20 02.11.2017 14:30 2 20022-FUJ 02.11.2017 1:20 02.11.2017 14:30 3 11882-DXB 04.11.2017 19:30 05.11.2017 9:40 4 12002-DXB 05.11.2017 2:10 05.11.2017 9:40 5 13489-DXB 05.11.2017 18:50 05.11.2017 9:40

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

#### manibiotech

##### New Member
Tat i want in two different time means 0to 60min,61to120min,121 minto 180min

Replies
4
Views
94
Replies
3
Views
241
Replies
17
Views
231
Replies
20
Views
297
Replies
13
Views
595

1,191,483
Messages
5,986,851
Members
440,053
Latest member
jhollingworth

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back