#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default NETWORKDAYS

Is there a way to get the difference in business hours between two dates?

Example:
The difference between 10/20/2006 5:10:01 and 10/23/2006 15:10:01
would be 10:00:00, and not 82:00:00

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default NETWORKDAYS

Correction: 34:00:00, not 10:00:00

"ansoriano1" wrote:

Is there a way to get the difference in business hours between two dates?

Example:
The difference between 10/20/2006 5:10:01 and 10/23/2006 15:10:01
would be 10:00:00, and not 82:00:00

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default NETWORKDAYS

=NETWORKDAYS(A1,A2)-1+MOD(A2-A1,1)

Format cell as [h]:mm:ss


"ansoriano1" wrote:

Is there a way to get the difference in business hours between two dates?

Example:
The difference between 10/20/2006 5:10:01 and 10/23/2006 15:10:01
would be 10:00:00, and not 82:00:00

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default NETWORKDAYS

thank you!

"Teethless mama" wrote:

=NETWORKDAYS(A1,A2)-1+MOD(A2-A1,1)

Format cell as [h]:mm:ss


"ansoriano1" wrote:

Is there a way to get the difference in business hours between two dates?

Example:
The difference between 10/20/2006 5:10:01 and 10/23/2006 15:10:01
would be 10:00:00, and not 82:00:00

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default NETWORKDAYS

This will give you an incorrect result if the time in A2 is earlier in the
day than the time in A1.

Try this amendment

=NETWORKDAYS(A1,A2)-1+MOD(A2,1)-MOD(A1,1)

note: A1 and A2 should be within business hours

"Teethless mama" wrote:

=NETWORKDAYS(A1,A2)-1+MOD(A2-A1,1)

Format cell as [h]:mm:ss


"ansoriano1" wrote:

Is there a way to get the difference in business hours between two dates?

Example:
The difference between 10/20/2006 5:10:01 and 10/23/2006 15:10:01
would be 10:00:00, and not 82:00:00

Thanks

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
Combining an If Statement with NETWORKDAYS function Shirley Munro Excel Discussion (Misc queries) 1 June 21st 06 12:42 PM
networkdays vs days360 Toothfaerie Excel Discussion (Misc queries) 1 May 31st 06 02:56 AM
networkdays function help Deb Bagby Excel Worksheet Functions 3 November 1st 05 06:36 PM
NETWORKDAYS() not avaialbe after reopening Stan Excel Worksheet Functions 2 June 19th 05 04:53 PM
NETWORKDAYS function problem Arvi Laanemets Excel Worksheet Functions 5 April 19th 05 08:10 AM


All times are GMT +1. The time now is 04:44 PM.

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"