Another complex working hours formula

Hitesh_Banda

New Member
Joined
Jun 8, 2010
Messages
25
Hi!

I am creating a template which consists the following:
  1. Start Date & Time - contains a start date and time
  2. End Date & Time - contains a end date and time
  3. nwday1 - Named range (contains non-working 1 day OR first weekly off, it accepts a number from 1 to 7)
  4. nwday2 - Named range (contains non-working 2 day OR second weekly off, it accepts a number from 1 to 7)
  5. Holidays_List - Contains the official list of Company holidays
  6. s_time - Named range (contains shift start time)
  7. e_time - Named range (contains shift end time)

Requirement-
Need the exact time (HH:MM:SS format) between 1 & 2, excluding 4,5,6 along with the time between 6 and 7

Business Rules-
  1. An associate can receive a request at any time of the day, including the before shift time and after shift time.
  2. An associate can start and complete working on a request only between his shift hours (between s_time and e_time).
  3. A request worked upon by the associate can span multiple days.
  4. If a request is received before or after shift hours, the next consecutive working date and time needs to be considered for Start time

Any help would be greatly appreciated.
Thanks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I think that what you're after is a way to calculate NetworkHours in a similar way to function NETWORKDAYS. Unfortunataley, no such function yet exists. The alternative algorithm is complex, and I've dealt with it before. Peruse these threads and link and determine whether or not any of this helps: TAT minutes including weekend http://www.mrexcel.com/forum/excel-...s-between-two-dates-excluding-weekends-5.html

Also, please go here, sign up and vote for the creation of this kind of function. If enough votes accumulate, Microsoft might make it a reality. Create NETWORKHOURS as a new function
 
Upvote 0
DRSteele,

I'll definitely vote for creating networkhours function. In the meantime, I'll check the threads and let you know which one of them helps.

Thanks.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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