Turnaround Time Formula needed

dawwni

New Member
Joined
Feb 10, 2023
Messages
19
Office Version
  1. 365
I need a formula that calculates the turnaround time in excel in hours between two dates and times. For example, A1 is the date received, A2 is the time received, A3 is date completed and A4 is the time completed. This would be for a work day of either 8 to 10 hours depending upon location so I would assume there is an if/then in there somewhere too. Any help is greatly appreciated.
 
Also, the turn around time is not just during business working hours though. It starts when we receive the sample and ends when results are sent. So even during the overnight hours, those are still accumulated into the total turnaround time.
sorry, i've been sidetracked. I will work on this in the evening (in 4-6 hours). Others may post their ideas on the issue in the mean time.
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Also, the turn around time is not just during business working hours though. It starts when we receive the sample and ends when results are sent. So even during the overnight hours, those are still accumulated into the total turnaround time.
i just re-read this. so, a project is completed at 15:00 on a tuesday, and was received at 10:00 on a monday ... on the clock that is 29 hours, but since only 10 hrs per day is the TAT 20 hrs (10am-10pm Mon, 12:00 am-10am Tues)? Can you give me more examples?
 
Upvote 0
Sure. As for the one you created it would still be 29 hours for the turn around. But if this was over a weekend, those hours wouldn't be counted.

Ex: Received Friday at 8:00, Completed Monday at 8:00 then Turnaround time would be 24 hours
Ex: Received Tuesday at 8:00, Completed Wednesday at 8:00 = 24 hours
Ex: Received Wednesday at 8:00, Completed Friday at 8:00 = 48 hours
Ex: Received Thursday at 8:00, Completed Monday at 8:00 = 48 hours

I am so sorry, I know this is confusing which is one of the reasons I am having such a hard time getting it myself. I hope this helps.
 
Upvote 0
Well, questions clear up confusion! Please don't worry. Your last post makes things more clear! hold on...
 
Upvote 0
Date ReceivedTime ReceivedSODEODDate CompletedDays in FlightTime CompletedTAT in HrsWorking Hours per Day
1/3/2023​
13:00​
8:00​
18:00​
1/3/2023​
0.00​
14:00​
1.00​
10:00​
1/3/2023​
8:00​
8:00​
18:00​
1/4/2023​
1.00​
10:00​
12.00​
10:00​
1/3/2023​
11:00​
8:00​
16:00​
1/4/2023​
1.00​
8:00​
5.00​
8:00​

In the TAT column I put the following formula:

=HOUR(IF(A4=E4,G4-B4,(G4-C4)+(D4-B4)+((F4-1)*I4)))
I had to add a few columns to make it work with the formatting, feel free to change your start and end of day times. I also added a days in flight column to make some of the time formatting easier, but it may not be needed with a more elegant solution.
 
Upvote 0
Solution
Date ReceivedTime ReceivedSODEODDate CompletedDays in FlightTime CompletedTAT in HrsWorking Hours per Day
1/3/2023​
13:00​
8:00​
18:00​
1/3/2023​
0.00​
14:00​
1.00​
10:00​
1/3/2023​
8:00​
8:00​
18:00​
1/4/2023​
1.00​
10:00​
12.00​
10:00​
1/3/2023​
11:00​
8:00​
16:00​
1/4/2023​
1.00​
8:00​
5.00​
8:00​

In the TAT column I put the following formula:

=HOUR(IF(A4=E4,G4-B4,(G4-C4)+(D4-B4)+((F4-1)*I4)))
I had to add a few columns to make it work with the formatting, feel free to change your start and end of day times. I also added a days in flight column to make some of the time formatting easier, but it may not be needed with a more elegant solution.
This would not factor weekends into account btw.
 
Upvote 0
Thanks so much for your help. I have another question but will start a new post since it is different senario.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top