Calculating Business Hours

legendary_popsicle

New Member
Joined
Jul 25, 2011
Messages
49
Hello again! Another (probably) difficult problem that I need a solution to. I am developing a spreadsheet which calculates when a certain task should be completed in terms of business days. For example, the task below needs to be completed within one business day:

M1: Start Date
M2: 7/27/2011 5:54:05 AM

N1: End Date
N2: 7/27/2011 12:35:18 PM

O1: Projected End Date
O2: =WORKDAY(M2,1,Holiday)+MOD(M2,1) (which would be 7/28/2011 5:54:05 AM in this case)


So the formula above works perfectly for tasks that need to be completed in terms of days, or full 24-hour increments. However, what if a task needs to be completed in 3 hours?

I need a formula that can calculate a projected end date in business hours -- so that it would exclude hours between 7pm and 7am, weekends, and holidays. Any way you guys can help would be amazing. Thanks in advance!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I found a formula in another thread and modded it for my purposes. Is there anything I am missing? I'd like this to be tight as a drum.

=IF((MOD(A2,1)+0.125)>0.791666666666667,INT(A2)+IF(WEEKDAY(INT(A2))=6,3,1)+0.291666666666667+0.125-(0.791666666666667-MOD(A2,1)),INT(A2)+MOD(A2,1)+0.125)
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
rootytrip

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