Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Total hours with NETWORKDAYS
I am trying to figure out a formula to calculate how many hours are between
two dates. assuming 24 hour days, not 8 hour working days A1 = 2/16/05 11:00 AM B1 = 2/22/05 11:32 AM NETWORKDAYS returns 4, since this monday is a holiday. So is there a formula that can answer the question, "how many hours are there between A1 and B1 not including saturday, sunday and this monday 2/21. thank you. |
#2
|
|||
|
|||
http://www.cpearson.com/excel/DateTimeWS.htm
-- Regards, Peo Sjoblom "Spencer Hutton" wrote in message ... I am trying to figure out a formula to calculate how many hours are between two dates. assuming 24 hour days, not 8 hour working days A1 = 2/16/05 11:00 AM B1 = 2/22/05 11:32 AM NETWORKDAYS returns 4, since this monday is a holiday. So is there a formula that can answer the question, "how many hours are there between A1 and B1 not including saturday, sunday and this monday 2/21. thank you. |
#3
|
|||
|
|||
Try:
=NETWORKDAYS(A1,B1,J1:J10)-2+(1-MOD(A1,1))+MOD(B1,1) where J1:J10 is your list of holiday dates. You can simplify the formula further with: =NETWORKDAYS(A1,B1,J1:J10)-1-MOD(A1,1)+MOD(B1,1) Custom format the formula cell as [hh]:mm. HTH Jason Atlanta, GA -----Original Message----- I am trying to figure out a formula to calculate how many hours are between two dates. assuming 24 hour days, not 8 hour working days A1 = 2/16/05 11:00 AM B1 = 2/22/05 11:32 AM NETWORKDAYS returns 4, since this monday is a holiday. So is there a formula that can answer the question, "how many hours are there between A1 and B1 not including saturday, sunday and this monday 2/21. thank you. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
calculating timesheet, time-in/time-out = total hours & minutes, . | Excel Worksheet Functions | |||
add column of minutes, show total in hours & minutes | Excel Worksheet Functions | |||
Problems calculating total hours | Excel Discussion (Misc queries) | |||
Subtracting paid hours from unpaid hours | Excel Worksheet Functions | |||
how to convert total hours (HH:MM) into decimal number | Excel Worksheet Functions |