#1   Report Post  
Chip Pearson
 
Posts: n/a
Default Date Diff

Stan,

Times are stored as a fraction of a 24-hour day (6:00 = 0.25,
12:00 = 0.5, 18:00 = 0.75, etc). Thus, you can subtract the start
time from the end time as normal subtraction.

=end_time - start_time

Format the result cell as time.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Stan" wrote in message
...
I need to calculate the difference between two time fields that
are formatted
to 'Medium Time'. For example: start time = 12:55 pm end
time = 1:57 pm

I hoping to return it in an 'hh:mm' format. The above example
would return
1:02.

Any help you can provide would be most appreciated.

Many thanks!



  #2   Report Post  
Stan
 
Posts: n/a
Default Date Diff

Well I forgot to mention I was doing this in Access. When I subtract the end
time from the start time I get 23:28 as a result. I'm using 12:55 pm as the
start time and 1:27 pm as the end time. Any thoughts on what I did wrong?



"Chip Pearson" wrote:

Stan,

Times are stored as a fraction of a 24-hour day (6:00 = 0.25,
12:00 = 0.5, 18:00 = 0.75, etc). Thus, you can subtract the start
time from the end time as normal subtraction.

=end_time - start_time

Format the result cell as time.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Stan" wrote in message
...
I need to calculate the difference between two time fields that
are formatted
to 'Medium Time'. For example: start time = 12:55 pm end
time = 1:57 pm

I hoping to return it in an 'hh:mm' format. The above example
would return
1:02.

Any help you can provide would be most appreciated.

Many thanks!




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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Recurring annual events using a specific date as a trigger date Bamboozled Excel Worksheet Functions 1 June 6th 05 01:44 PM


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