how can we calculate the numbers of hours between two dates and

  • Follow


i need to calculate the exact number of hours between two different dates and 
times, e.x. 04/12/10 10:23 AM and 04/15/10 15:18.

0
Reply Utf 4/13/2010 5:40:01 PM

=B1-A1, format Custom as [h]:mm

-- 
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rama Chandra" <Rama Chandra@discussions.microsoft.com> wrote in message 
news:1AE69E13-2B22-4CBA-9E0B-3B2665C466E1@microsoft.com...
>i need to calculate the exact number of hours between two different dates 
>and
> times, e.x. 04/12/10 10:23 AM and 04/15/10 15:18.
> 

0
Reply Niek 4/13/2010 6:07:29 PM


=(+A2-A1)*24
-- 
Hope this helps.  
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Rama Chandra" wrote:

> i need to calculate the exact number of hours between two different dates and 
> times, e.x. 04/12/10 10:23 AM and 04/15/10 15:18.
> 
0
Reply Utf 4/13/2010 6:22:05 PM

Subtract the earlier value from the later one and then use Format --> Custom 
format:
[h]:mm:ss
For example with 04/12/10 10:23 AM in A1 and 04/15/10 15:18 in B1 then
=B1-A1
and with the custom formatting applied will display 76:55:00, which is 76 
hours and 55 minutes.


"Rama Chandra" wrote:

> i need to calculate the exact number of hours between two different dates and 
> times, e.x. 04/12/10 10:23 AM and 04/15/10 15:18.
> 
0
Reply Utf 4/13/2010 6:25:01 PM

If you would rather have the result as a decimal number (76.91667 hours for 
the previous example), then
=(B1-A1)*24
and format the cell as either General or one of the Number formats.

"Rama Chandra" wrote:

> i need to calculate the exact number of hours between two different dates and 
> times, e.x. 04/12/10 10:23 AM and 04/15/10 15:18.
> 
0
Reply Utf 4/13/2010 6:29:01 PM

4 Replies
462 Views

(page loaded in 0.22 seconds)

Similiar Articles:
















7/16/2012 7:54:41 AM


Reply: