TAT minutes including weekend

jodipy

New Member
Joined
Sep 9, 2013
Messages
16
Hi all,

This is my first post. I've search and read some post but couldn't get what I was looking for.

Received time
Complete time
TAT (mins)
Business hours (include weekends/public holidays)
21/11/2015 11:00PM
22/11/2015 10:00AM
60
9:00AM - 9:00PM
22/11/2015 11:00AM
22/11/2015 11:45AM
45

<tbody>
</tbody>

Above is an example of my setup. I've tried to use networkdays to calculate but the result is wrong.
Anyone can help?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What you're after is an algorithm that calculates working hours over dates, like a NETWORKHOURS function similar to NETWORKDAYS. Excel does not have such a function, but I wish it did. Please go to this website, register and vote for it: Create NETWORKHOURS as a new function

In the meantime, review this thread, which itself refers to other threads, and see if it is relevant. http://www.mrexcel.com/forum/excel-...-calculation-complex-formula.html#post4291215

Try this:

ABCD
1Start TimeEnd Time
29:00:00 AM9:00:00 PM
3
4TATTAT
5Received TimeCompleted Timehoursminutes
6Oct 07, 2015 9:00 AMOct 11, 2015 5:00 PM 56.00 3,360.00
7Oct 17, 2015 10:00 AMOct 17, 2015 11:05 PM 11.00 660.00
8Oct 19, 2015 7:30 AMOct 19, 2015 12:05 PM 3.08 185.00
9Nov 21, 2015 11:00 AMNov 22, 2015 10:00 AM 11.00 660.00

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet12

Worksheet Formulas
CellFormula
C6=IF(OR($D$2<$C$2,B6<A6),0,
(DAYS(B6,A6)+1
-(IF(MOD(A6,1)>$D$2,1,
(MAX($C$2,MOD(A6,1))-$C$2)
/($D$2-$C$2)
)
)
-(IF(MOD(B6,1)<$C$2,1,
($D$2-MIN($D$2,MOD(B6,1)))
/($D$2-$C$2)
)
)
)
*($D$2-$C$2)*24
)
D6=C6*60

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Thank you s os much for response.
I've tried your method and copy out to excel. My result is 0.00.
Is there any add-in to install?

Start TimeEnd Time
9:00:00 AM9:00:00 PM
TATTAT
Received TimeCompleted Timehoursminutes
07/10/15 9:0011/10/15 17:000.000.00

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
There is no add-in; it's a simple formula.

You do need to put the dates in as dates and not as text; you can format them however you like, but they must be entered as MS Excel dates.
 
Upvote 0
There is no add-in; it's a simple formula.

You do need to put the dates in as dates and not as text; you can format them however you like, but they must be entered as MS Excel dates.

I've formatted with custom "mmm dd, yyyy hh:mm AM/PM" format. Is this correct?
 
Upvote 0
Hi. I will try to help you more sometime early this week. I'm not near a desktop.

I can't imagine what the problem might be here. Try to copy everything into the proper cells and make sure dates are Excel Dates.

Hang tough.
 
Upvote 0
Tried to copy to different excel to execute. Result shows 0.00 as well. :eek:
Thanks for helping.
 
Upvote 0
This is the formula that should go in C6 and be copied down. Are you copying-and-pasting correctly?

Code:
=IF(OR($D$2<$C$2,B6<a6),0,(days(b6,a6)+1-(if(mod(a6,1)>$D$2,1,(MAX($C$2,MOD(A6,1))-$C$2)/($D$2-$C$2)))-(IF(MOD(B6,1)<$C$2,1,($D$2-MIN($D$2,MOD(B6,1)))/($D$2-$C$2))))*($D$2-$C$2)*24)
</a6),0,(days(b6,a6)+1-(if(mod(a6,1)>
 
Upvote 0
This is the formula that should go in C6 and be copied down. Are you copying-and-pasting correctly?

Code:
=IF(OR($D$2<$C$2,B6<a6),0,(days(b6,a6)+1-(if(mod(a6,1)>$D$2,1,(MAX($C$2,MOD(A6,1))-$C$2)/($D$2-$C$2)))-(IF(MOD(B6,1)<$C$2,1,($D$2-MIN($D$2,MOD(B6,1)))/($D$2-$C$2))))*($D$2-$C$2)*24)
</a6),0,(days(b6,a6)+1-(if(mod(a6,1)>

There is error in above formula
The original formula and this formula is different right?
 
Upvote 0

Forum statistics

Threads
1,215,841
Messages
6,127,221
Members
449,371
Latest member
strawberrish

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