Calculate Turn Around Time 7 days working excluding Holiday and in Working Hours

surevyas1984

New Member
Joined
Nov 17, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Dear Team,
I have a scenario where team is working 7 days. Mon to Fri from 7AM to 5PM and Sat and Sun 8AM to 12:30PM. There is also holiday list.
Please help me Create a formula in BL Draft sheet under column K header TAT (In H:MM) . Formula should calculate difference between Received Date & Time & Sent Time
It should calculate time of working hours only and should not consider non-working hours.
In case Holiday is updated in Public Holidays & work hours under column B then TAT should not calculate on that day.
Shift time and Holiday is updated in sheet "Public Holidays & work hours".

BL Draft Sheet
Sr. No.UserDateBl NoBkg No.SGSIN/MYPKGInvoice GeneratedInvoice SentReceived Date & TimeSent TimeTat (In H:MM)
1Alex04-01-2023VASPKLNML008223VASPKG2202697MYPKGNoNo29-12-2022 14:3004-01-2023 16:37
2Alex07-01-2023VASPKLCCU008240VASPKG2202689MYPKGNoNo07-01-2023 06:5407-01-2023 09:15
3Alex09-01-2023GMAEPKGTAO002696GMLPKG2200620MYPKGNoNo08-01-2023 07:3908-01-2023 12:41
4Alex09-01-2023VASPKLKHI008243VASPKG2202672MYPKGNoNo09-01-2023 07:5009-01-2023 15:23
5Alex09-01-2023VASPKLKHI008244VASPKG2202672MYPKGNoNo09-01-2023 07:5009-01-2023 15:23

Public Holidays & work hours Sheet
OccasionDateWork start time
07:00 AM​
Mon-Fri
Holiday109 January 2023Work end time
05:00 PM​
Holiday2
Holiday3Work start time
08:00 AM​
Sat & Sun
Holiday4Work end time
12:30 PM​

Looking forward for your support :)

Regards
Suresh Vyas
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I tried using the below formula
=SUM((NETWORKDAYS.INTL(H7,I7,1,holid)-1)*(out-in)+IF(NETWORKDAYS.INTL(I7,I7,1,holid),MEDIAN(MOD(I7,1),out,in),out)-MEDIAN(NETWORKDAYS.INTL(H7,H7,1,holid)*MOD(H7,1),out,in),(NETWORKDAYS.INTL(H7,I7,"0000000",holid)-1)*(sout-sin)+IF(NETWORKDAYS.INTL(I7,I7,"0000000",holid),MEDIAN(MOD(I7,1),sout,sin),sout)-MEDIAN(NETWORKDAYS.INTL(H7,H7,"0000000",holid)*MOD(H7,1),sout,sin))


Considering Out is "5.00PM" from Mon and Fri, In is "7.00AM" from Mon to Fri.
Sin and S out is for Sat and Sun.
Holid is for holiday list

Please help if Anything that I am missing
 
Upvote 0

Forum statistics

Threads
1,224,814
Messages
6,181,121
Members
453,021
Latest member
Justyna P

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