#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Subtracting dates

Is there a way to subtract 2 dtes and have the result come out in hours?
I am looking for a way to show the time difference between dates but it has
to be show in hours. I have tried formating the cell after doing this
subtraction but this wont work.
Thanks in Advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Subtracting dates

To get a result in decimal hours (ie. 35.25 equals 35 hours and 15 minutes):
=24(A2-A1)
format the cell as a number.

To get a result in Excel time (ie. 35:15):
=A2-A1
format the cell like this...
[h]:mm


"toot033" wrote:

Is there a way to subtract 2 dtes and have the result come out in hours?
I am looking for a way to show the time difference between dates but it has
to be show in hours. I have tried formating the cell after doing this
subtraction but this wont work.
Thanks in Advance.

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
Deleting time part of a Date, subtracting dates Shirley Munro Excel Discussion (Misc queries) 3 June 21st 06 11:58 AM
Subtracting Dates sam Excel Discussion (Misc queries) 3 March 2nd 06 12:47 PM
subtracting dates Brian Excel Discussion (Misc queries) 3 October 27th 05 07:54 PM
Subtracting dates to get hours... but I want to skip weekends shadestreet Excel Discussion (Misc queries) 2 October 5th 05 06:20 PM
Dates Subtracting dates. help me Excel Discussion (Misc queries) 4 December 17th 04 03:48 AM


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