Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to calculate diffrence in dates in days and Hours

Hi,

I am working on data sheet and having to columns like Must be Solve Date and
Actual Solve date i want to find diffrence between these 2 in days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default How to calculate diffrence in dates in days and Hours

Hello,

With my UDF count_hours you can accurately define which hours for
which weekdays you want to take into account (even taking care about
holidays):
http://sulprobil.com/html/count_hours.html

Regards,
Bernd
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How to calculate diffrence in dates in days and Hours

In cell C2 enter the simple subtract formula =B2-A2 and custom format the
formula cell as below

d:[h]:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hi,

I am working on data sheet and having to columns like Must be Solve Date and
Actual Solve date i want to find diffrence between these 2 in days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How to calculate diffrence in dates in days and Hours

Hello Jecob,

Result is not proper see the below table. in first line itself it is showing
0:44:27 which means 0 day, 440 Hrs and 27 mints which is wrong.



5/12/2010 7:22 5/12/2010 18:49 0:440:27
5/11/2010 13:00 5/12/2010 18:49 1:728:48
5/12/2010 15:21 5/12/2010 18:49 0:1400:27
5/12/2010 15:59 5/12/2010 18:49 0:680:49
5/12/2010 16:19 5/12/2010 18:49 0:248:30
5/11/2010 16:31 5/12/2010 18:49 1:368:18
5/12/2010 16:34 5/12/2010 18:49 0:680:14
5/12/2010 16:59 5/12/2010 18:49 0:176:50
5/12/2010 17:27 5/12/2010 18:49 0:416:22
5/11/2010 17:32 5/12/2010 18:49 1:1184:16
5/11/2010 17:35 5/12/2010 18:49 1:440:14
5/12/2010 17:36 5/12/2010 18:49 0:1064:12
5/11/2010 17:41 5/12/2010 18:49 1:1424:07
5/11/2010 17:43 5/12/2010 18:49 1:872:05
5/11/2010 17:47 5/12/2010 18:49 1:896:01
5/11/2010 17:47 5/12/2010 18:49 1:848:01
5/11/2010 17:52 5/12/2010 18:49 1:632:56
5/11/2010 20:24 5/12/2010 18:49 0:464:25
5/12/2010 23:17 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 0:14 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 1:04 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 5:56 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 7:52 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 8:46 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:02 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:11 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:13 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:45 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/12/2010 12:00 5/12/2010 18:49 0:152:49
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####


"Jacob Skaria" wrote:

In cell C2 enter the simple subtract formula =B2-A2 and custom format the
formula cell as below

d:[h]:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hi,

I am working on data sheet and having to columns like Must be Solve Date and
Actual Solve date i want to find diffrence between these 2 in days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How to calculate diffrence in dates in days and Hours

Remove the brackets from around the [h]:

d h:mm

Note that the max number of days that will be displayed is based on the
number of days in the current month. For example:

4/12/2010 7:22 ... 5/14/2010 18:49

The correct result should be 32 11:27 but the displayed result will be 1
11:27. The days will roll over at the max number of days in the current
month but there is no way to stop that from happening with a custom number
format.

--
Biff
Microsoft Excel MVP


"MsLearner" wrote in message
...
Hello Jecob,

Result is not proper see the below table. in first line itself it is
showing
0:44:27 which means 0 day, 440 Hrs and 27 mints which is wrong.



5/12/2010 7:22 5/12/2010 18:49 0:440:27
5/11/2010 13:00 5/12/2010 18:49 1:728:48
5/12/2010 15:21 5/12/2010 18:49 0:1400:27
5/12/2010 15:59 5/12/2010 18:49 0:680:49
5/12/2010 16:19 5/12/2010 18:49 0:248:30
5/11/2010 16:31 5/12/2010 18:49 1:368:18
5/12/2010 16:34 5/12/2010 18:49 0:680:14
5/12/2010 16:59 5/12/2010 18:49 0:176:50
5/12/2010 17:27 5/12/2010 18:49 0:416:22
5/11/2010 17:32 5/12/2010 18:49 1:1184:16
5/11/2010 17:35 5/12/2010 18:49 1:440:14
5/12/2010 17:36 5/12/2010 18:49 0:1064:12
5/11/2010 17:41 5/12/2010 18:49 1:1424:07
5/11/2010 17:43 5/12/2010 18:49 1:872:05
5/11/2010 17:47 5/12/2010 18:49 1:896:01
5/11/2010 17:47 5/12/2010 18:49 1:848:01
5/11/2010 17:52 5/12/2010 18:49 1:632:56
5/11/2010 20:24 5/12/2010 18:49 0:464:25
5/12/2010 23:17 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 0:14 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 1:04 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 5:56 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 7:52 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 8:46 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:02 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:11 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:13 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:45 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/12/2010 12:00 5/12/2010 18:49 0:152:49
5/13/2010 12:10 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 12:10 5/12/2010
18:49
################################################## ################################################## ################################################## ################################################## ################################################## #####


"Jacob Skaria" wrote:

In cell C2 enter the simple subtract formula =B2-A2 and custom format the
formula cell as below

d:[h]:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hi,

I am working on data sheet and having to columns like Must be Solve
Date and
Actual Solve date i want to find diffrence between these 2 in
days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can
bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How to calculate diffrence in dates in days and Hours

For me it gives 4:0:01 with the below format

d:h:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hello Jecob,

Result is not proper see the below table. in first line itself it is showing
0:44:27 which means 0 day, 440 Hrs and 27 mints which is wrong.



5/12/2010 7:22 5/12/2010 18:49 0:440:27
5/11/2010 13:00 5/12/2010 18:49 1:728:48
5/12/2010 15:21 5/12/2010 18:49 0:1400:27
5/12/2010 15:59 5/12/2010 18:49 0:680:49
5/12/2010 16:19 5/12/2010 18:49 0:248:30
5/11/2010 16:31 5/12/2010 18:49 1:368:18
5/12/2010 16:34 5/12/2010 18:49 0:680:14
5/12/2010 16:59 5/12/2010 18:49 0:176:50
5/12/2010 17:27 5/12/2010 18:49 0:416:22
5/11/2010 17:32 5/12/2010 18:49 1:1184:16
5/11/2010 17:35 5/12/2010 18:49 1:440:14
5/12/2010 17:36 5/12/2010 18:49 0:1064:12
5/11/2010 17:41 5/12/2010 18:49 1:1424:07
5/11/2010 17:43 5/12/2010 18:49 1:872:05
5/11/2010 17:47 5/12/2010 18:49 1:896:01
5/11/2010 17:47 5/12/2010 18:49 1:848:01
5/11/2010 17:52 5/12/2010 18:49 1:632:56
5/11/2010 20:24 5/12/2010 18:49 0:464:25
5/12/2010 23:17 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 0:14 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 1:04 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 5:56 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 7:52 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 8:46 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:02 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:11 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:13 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:45 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/12/2010 12:00 5/12/2010 18:49 0:152:49
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####


"Jacob Skaria" wrote:

In cell C2 enter the simple subtract formula =B2-A2 and custom format the
formula cell as below

d:[h]:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hi,

I am working on data sheet and having to columns like Must be Solve Date and
Actual Solve date i want to find diffrence between these 2 in days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default How to calculate diffrence in dates in days and Hours

I am sorry; it gives the below for the first entry

0:11:27

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hello Jecob,

Result is not proper see the below table. in first line itself it is showing
0:44:27 which means 0 day, 440 Hrs and 27 mints which is wrong.



5/12/2010 7:22 5/12/2010 18:49 0:440:27
5/11/2010 13:00 5/12/2010 18:49 1:728:48
5/12/2010 15:21 5/12/2010 18:49 0:1400:27
5/12/2010 15:59 5/12/2010 18:49 0:680:49
5/12/2010 16:19 5/12/2010 18:49 0:248:30
5/11/2010 16:31 5/12/2010 18:49 1:368:18
5/12/2010 16:34 5/12/2010 18:49 0:680:14
5/12/2010 16:59 5/12/2010 18:49 0:176:50
5/12/2010 17:27 5/12/2010 18:49 0:416:22
5/11/2010 17:32 5/12/2010 18:49 1:1184:16
5/11/2010 17:35 5/12/2010 18:49 1:440:14
5/12/2010 17:36 5/12/2010 18:49 0:1064:12
5/11/2010 17:41 5/12/2010 18:49 1:1424:07
5/11/2010 17:43 5/12/2010 18:49 1:872:05
5/11/2010 17:47 5/12/2010 18:49 1:896:01
5/11/2010 17:47 5/12/2010 18:49 1:848:01
5/11/2010 17:52 5/12/2010 18:49 1:632:56
5/11/2010 20:24 5/12/2010 18:49 0:464:25
5/12/2010 23:17 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 0:14 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 1:04 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 5:56 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 7:52 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 8:46 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:02 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:11 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:13 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 11:45 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/12/2010 12:00 5/12/2010 18:49 0:152:49
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####
5/13/2010 12:10 5/12/2010
18:49 ################################################## ################################################## ################################################## ################################################## ################################################## #####


"Jacob Skaria" wrote:

In cell C2 enter the simple subtract formula =B2-A2 and custom format the
formula cell as below

d:[h]:mm

--
Jacob (MVP - Excel)


"MsLearner" wrote:

Hi,

I am working on data sheet and having to columns like Must be Solve Date and
Actual Solve date i want to find diffrence between these 2 in days:hrs:mints
in result column.

sample i have provided below. can some one help me what formula can bring be
exact diffrence in days:hrs:mints in Excel 2007

Must be reacted WasReacted Delay in Reaction
5/10/2010 6:05 5/10/2010 4:17
5/10/2010 7:43 5/10/2010 5:50
5/10/2010 9:22 5/10/2010 7:24
5/10/2010 10:30 5/10/2010 8:38
5/10/2010 11:10 5/10/2010 9:19


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
calculate the the diffrence between 2 Dates and time LKWP Excel Worksheet Functions 2 July 2nd 08 02:15 PM
How do I calculate dates and times, w/answer of days & hours Debby_Jo Excel Worksheet Functions 4 April 27th 07 04:05 AM
How do I calculate the week day hours between 2 days Mickey Excel Discussion (Misc queries) 1 October 6th 05 12:29 AM
How to calculate days:Hours:Minutes: Hood Excel Worksheet Functions 1 January 17th 05 11:11 AM
How do I calculate difference in days & hours between two dates e. probi2 Excel Worksheet Functions 1 January 12th 05 03:59 PM


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