How to calculate completion date/time ignoring nonworking hours

sosession

New Member
Joined
Jun 16, 2015
Messages
6
Known Variables
  • A1 = start date and time (6/16/15 6:00AM)
  • B1 = estimated hours to complete work order (15)
  • Work schedule is 6AM to 6PM, weekdays only

What formula can I use to calculate the end date/time, ignoring nonworking hours? It currently says that the estimated completion will be 6/16/15 9:00PM. However, that is outside of working hours. The correct estimated completion date/time should be 6/17/15 9:00AM. How do I ignore nonworking hours and weekends? Please help!
 
So far so good. Even though Barry put it together, thank you very much for getting it to me. Credit to you as well! One last thing, which part of the formula would/could I add holidays to exclude from the work schedule? Thanks in advance!
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
With a range named Holidays .... =WORKDAY(A1,CEILING(((A2/24)+MOD(A1,1)-B1)/(B2-B1),1)-1,Holidays)+MOD(A1,1)+(A2/24)-CEILING(MOD(A1,1)+(A2/24)-B1,B2-B1)+B2-B1
 
Upvote 0
Sorry it has been a while since this post but I have a very similar spreadsheet I am working with and cannot get this to work either but cannot download the file with the link. Can you send me the file please so I can see what I am doing wrong.

Thanks
 
Upvote 0
Hi Ken,

Please refer to the pm ... I just sent you ...

Cheers
 
Upvote 0

Forum statistics

Threads
1,215,511
Messages
6,125,247
Members
449,217
Latest member
Trystel

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