Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Length of time from date/time custom format

I am working with a database that uses one of the custom date/time formats,
specifically m/d/yyyy h:mm. I want to calculate the time difference between
two cells in this format; however, when I do a simple subtraction (for
example =A1-B1) the result is displayed again as a date and time. What I want
is to be able to determine the difference in time between the two values (for
example, the difference between 1/2/2000 13:00 and 1/1/2000 12:00 would be 1
day, 1 hour (or 25 hours, or 1500 minutes). I appreciate any advice!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Length of time from date/time custom format

Do the normal substration and format the formula cell to [h]:mm:ss
--
If this post helps click Yes
---------------
Jacob Skaria


"Andrew" wrote:

I am working with a database that uses one of the custom date/time formats,
specifically m/d/yyyy h:mm. I want to calculate the time difference between
two cells in this format; however, when I do a simple subtraction (for
example =A1-B1) the result is displayed again as a date and time. What I want
is to be able to determine the difference in time between the two values (for
example, the difference between 1/2/2000 13:00 and 1/1/2000 12:00 would be 1
day, 1 hour (or 25 hours, or 1500 minutes). I appreciate any advice!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Length of time from date/time custom format

You can subtract them like you have tried, but you need to give the
cell with the formula in a different format, using Custom, such as:

[h]" hours"

or:

[m]" minutes"

Hope this helps.

Pete

On Sep 21, 4:02*pm, Andrew wrote:
I am working with a database that uses one of the custom date/time formats,
specifically m/d/yyyy h:mm. I want to calculate the time difference between
two cells in this format; however, when I do a simple subtraction (for
example =A1-B1) the result is displayed again as a date and time. What I want
is to be able to determine the difference in time between the two values (for
example, the difference between 1/2/2000 13:00 and 1/1/2000 12:00 would be 1
day, 1 hour (or 25 hours, or 1500 minutes). I appreciate any advice!


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
Extracting time (hr:min) from date/time format lawandgrace Excel Discussion (Misc queries) 4 August 18th 09 05:21 PM
Custom time format help PYO1012 Excel Discussion (Misc queries) 1 August 5th 09 04:09 AM
Custom Date & Time format MSwan1 Excel Worksheet Functions 3 October 18th 05 08:11 PM
Convert date to length of time in months from set date MJUK Excel Worksheet Functions 1 March 19th 05 06:31 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 05:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"