ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Calculating Networkdays and Business Hours (https://www.excelbanter.com/excel-worksheet-functions/111657-calculating-networkdays-business-hours.html)

James A.

Calculating Networkdays and Business Hours
 
I have been trying to come up with a formula that will calculate the time
difference between two given cells. To get the correct amount of time it
takes employee's to complete the task, I must factor in networkdays and
business hours (8am-5pm). Unfortunately I have been unsuccessful in my
attempts to calculate both factors. Is there such a formula? Any help is
greatly appreciated!

09/15/06 10:05:56 09/18/06 12:15:25 - difference is ???

Dave F

Calculating Networkdays and Business Hours
 
Assume your first TIME is in A1 and your second TIME is in B1, then:

=(A1-5:00PM) * 24 -- first days' hours in decimal form (approx. 7 hours)
=(B1-5:00PM) * 24 -- last days' hours in decimal form (approx. 4.75 hours)

PLUS

9 hours for 9/16/06
9 hours for 9/17/06

What you have to do here is split the DATE from the TIME and perform
calculations on both. The days' difference between 9/15/06 and 9/18/06 is 2
days, times 9 hrs per day is 18 hours. So add that to the time calculations
above. You get approximately 19.75 hours.

Dave

--
Brevity is the soul of wit.


"James A." wrote:

I have been trying to come up with a formula that will calculate the time
difference between two given cells. To get the correct amount of time it
takes employee's to complete the task, I must factor in networkdays and
business hours (8am-5pm). Unfortunately I have been unsuccessful in my
attempts to calculate both factors. Is there such a formula? Any help is
greatly appreciated!

09/15/06 10:05:56 09/18/06 12:15:25 - difference is ???


Dave F

Calculating Networkdays and Business Hours
 
Should be approx 29.75 hrs.......
--
Brevity is the soul of wit.


"Dave F" wrote:

Assume your first TIME is in A1 and your second TIME is in B1, then:

=(A1-5:00PM) * 24 -- first days' hours in decimal form (approx. 7 hours)
=(B1-5:00PM) * 24 -- last days' hours in decimal form (approx. 4.75 hours)

PLUS

9 hours for 9/16/06
9 hours for 9/17/06

What you have to do here is split the DATE from the TIME and perform
calculations on both. The days' difference between 9/15/06 and 9/18/06 is 2
days, times 9 hrs per day is 18 hours. So add that to the time calculations
above. You get approximately 19.75 hours.

Dave

--
Brevity is the soul of wit.


"James A." wrote:

I have been trying to come up with a formula that will calculate the time
difference between two given cells. To get the correct amount of time it
takes employee's to complete the task, I must factor in networkdays and
business hours (8am-5pm). Unfortunately I have been unsuccessful in my
attempts to calculate both factors. Is there such a formula? Any help is
greatly appreciated!

09/15/06 10:05:56 09/18/06 12:15:25 - difference is ???


James A.

Calculating Networkdays and Business Hours
 
Thanks Dave! I appreciate your help!

"Dave F" wrote:

Assume your first TIME is in A1 and your second TIME is in B1, then:

=(A1-5:00PM) * 24 -- first days' hours in decimal form (approx. 7 hours)
=(B1-5:00PM) * 24 -- last days' hours in decimal form (approx. 4.75 hours)

PLUS

9 hours for 9/16/06
9 hours for 9/17/06

What you have to do here is split the DATE from the TIME and perform
calculations on both. The days' difference between 9/15/06 and 9/18/06 is 2
days, times 9 hrs per day is 18 hours. So add that to the time calculations
above. You get approximately 19.75 hours.

Dave

--
Brevity is the soul of wit.


"James A." wrote:

I have been trying to come up with a formula that will calculate the time
difference between two given cells. To get the correct amount of time it
takes employee's to complete the task, I must factor in networkdays and
business hours (8am-5pm). Unfortunately I have been unsuccessful in my
attempts to calculate both factors. Is there such a formula? Any help is
greatly appreciated!

09/15/06 10:05:56 09/18/06 12:15:25 - difference is ???



All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com