A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to calculate diffrence in dates in days and Hours



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2010, 02:00 PM posted to microsoft.public.excel.worksheet.functions
MsLearner
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  
Old May 12th, 2010, 02:11 PM posted to microsoft.public.excel.worksheet.functions
Bernd P
external usenet poster
 
Posts: 613
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  
Old May 12th, 2010, 02:17 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
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  
Old May 12th, 2010, 02:26 PM posted to microsoft.public.excel.worksheet.functions
MsLearner
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  
Old May 12th, 2010, 02:53 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
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  
Old May 12th, 2010, 02:54 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
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  
Old May 12th, 2010, 02:55 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
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


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:32 PM.


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