Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Spencer Hutton
 
Posts: n/a
Default 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   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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   Report Post  
Jason Morin
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calculating timesheet, time-in/time-out = total hours & minutes, . Steve Lindsay Excel Worksheet Functions 13 November 8th 06 03:45 PM
add column of minutes, show total in hours & minutes glider pilot Excel Worksheet Functions 1 December 30th 04 10:27 PM
Problems calculating total hours LolaK Excel Discussion (Misc queries) 1 December 14th 04 04:23 PM
Subtracting paid hours from unpaid hours ejerry7 Excel Worksheet Functions 5 November 29th 04 04:16 AM
how to convert total hours (HH:MM) into decimal number Greg T Excel Worksheet Functions 1 November 17th 04 03:07 PM


All times are GMT +1. The time now is 07:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"