Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DrBarqs
 
Posts: n/a
Default Ref: Formula to calculate elapsed time between certain dates and t

Is there a way that the function in the referenced post could include
weekends, i.e.
10/26/05 3:48 PM 11/1/05 9:07 AM?

Function in posting:

=SUM((18/24-MOD(A1,1))*(WEEKDAY(A1,2)<6),MOD(A15,1)-8/24*
(WEEKDAY(A15,2)<6)+(NETWORKDAYS(A1,A15)-SUM(WEEKDAY(A1,2)
<6,WEEKDAY(A15,2)<6))*10/24)

This function totals the time as 5:19:00 when it actually should be 29:19:00.

Thanks in advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Ref: Formula to calculate elapsed time between certain datesand t

Hi

how have you got the cell with the formula formatted?
It should be [h]:mm to allow Excel to go beyond 24 hours, rather than
cycling back to zero again.

With your dates and times and formula, I get a result of 33:19

Regards

Roger Govier


DrBarqs wrote:
Is there a way that the function in the referenced post could include
weekends, i.e.
10/26/05 3:48 PM 11/1/05 9:07 AM?

Function in posting:

=SUM((18/24-MOD(A1,1))*(WEEKDAY(A1,2)<6),MOD(A15,1)-8/24*
(WEEKDAY(A15,2)<6)+(NETWORKDAYS(A1,A15)-SUM(WEEKDAY(A1,2)
<6,WEEKDAY(A15,2)<6))*10/24)

This function totals the time as 5:19:00 when it actually should be 29:19:00.

Thanks in advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
DrBarqs
 
Posts: n/a
Default Ref: Formula to calculate elapsed time between certain dates a

Hello.

Changing the time format worked!

Thank you very much.

"Roger Govier" wrote:

Hi

how have you got the cell with the formula formatted?
It should be [h]:mm to allow Excel to go beyond 24 hours, rather than
cycling back to zero again.

With your dates and times and formula, I get a result of 33:19

Regards

Roger Govier


DrBarqs wrote:
Is there a way that the function in the referenced post could include
weekends, i.e.
10/26/05 3:48 PM 11/1/05 9:07 AM?

Function in posting:

=SUM((18/24-MOD(A1,1))*(WEEKDAY(A1,2)<6),MOD(A15,1)-8/24*
(WEEKDAY(A15,2)<6)+(NETWORKDAYS(A1,A15)-SUM(WEEKDAY(A1,2)
<6,WEEKDAY(A15,2)<6))*10/24)

This function totals the time as 5:19:00 when it actually should be 29:19:00.

Thanks in advance for any help.


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
Formula to calculate number of days between Dates themax16 Excel Worksheet Functions 2 October 21st 05 01:38 PM
Can someone help with a formula to calculate dates? SharonP. Excel Discussion (Misc queries) 11 August 9th 05 01:47 PM
Formula to calculate elapsed time between certain dates and times Stadinx Excel Discussion (Misc queries) 6 March 25th 05 07:02 AM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
How to calculate time between two dates? ByGolly! Setting up and Configuration of Excel 1 February 12th 05 03:42 PM


All times are GMT +1. The time now is 01:14 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"