Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how can we calculate the numbers of hours between two dates and

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.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default how can we calculate the numbers of hours between two dates and

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rama Chandra" <Rama wrote in message
...
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.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 126
Default how can we calculate the numbers of hours between two dates and

=(+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.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default how can we calculate the numbers of hours between two dates and

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.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default how can we calculate the numbers of hours between two dates and

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.

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 working hours between two dates DubboPete Excel Discussion (Misc queries) 2 October 15th 09 01:44 AM
How to calculate Hours between two dates? Jon Excel Discussion (Misc queries) 7 January 18th 09 04:29 PM
Calculate hours between to separate dates and times Dave08 New Users to Excel 7 October 13th 08 10:36 AM
Calculate work hours between two dates trixiebme Excel Worksheet Functions 1 January 12th 05 07:37 PM
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 10:35 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"