Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default time diffrence with 24 hour clock

can you tell me the formula for telling the time diffrence between 2 times
when the either time may appear after midnight, without the need for a 48hr
clock

time due - 23:00 time arrived - 01:00 (2 hours)
time due - 01:00 time arrived - 23:00 (blank) but using a 24 hr clock this
shows as 22 ours late when in fact is 2 hours early

thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default time diffrence with 24 hour clock

You'll either have to tell it the date as well as the time, or you're going
to have to decide where you draw the line between something being late for
one day and being early for the following day.

You could draw that line at 12 hours.
=MOD(B1-A1+0.5,1)-0.5

To display negative times you may have to use the 1904 date system (Tools/
Options/ Calculation)
--
David Biddulph
"Rich Mcc" (no spam) wrote in message
...
can you tell me the formula for telling the time diffrence between 2 times
when the either time may appear after midnight, without the need for a
48hr
clock

time due - 23:00 time arrived - 01:00 (2 hours)
time due - 01:00 time arrived - 23:00 (blank) but using a 24 hr clock
this
shows as 22 ours late when in fact is 2 hours early

thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 427
Default time diffrence with 24 hour clock

Just, assuming 2 times First and Last and no dates

=if( LastFirst, Last-First, 1+First-Last)

Steve



On Wed, 25 Oct 2006 13:12:42 +0100, David Biddulph
wrote:

You'll either have to tell it the date as well as the time, or you're
going
to have to decide where you draw the line between something being late
for
one day and being early for the following day.

You could draw that line at 12 hours.
=MOD(B1-A1+0.5,1)-0.5

To display negative times you may have to use the 1904 date system
(Tools/
Options/ Calculation)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default time diffrence with 24 hour clock

Try this:
A1=23:00 and B1=1:00

=IF(A1B1,(B1-A1+1)*24,"")



"Rich Mcc" wrote:

can you tell me the formula for telling the time diffrence between 2 times
when the either time may appear after midnight, without the need for a 48hr
clock

time due - 23:00 time arrived - 01:00 (2 hours)
time due - 01:00 time arrived - 23:00 (blank) but using a 24 hr clock this
shows as 22 ours late when in fact is 2 hours early

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 round time to the nearest quarter of an hour Meghan New Users to Excel 6 July 7th 06 06:36 PM
rounding up time to quarter hour increments kdp145 Excel Worksheet Functions 5 March 15th 06 12:05 AM
Cells with time format and calculating the diffrence MikeR-Oz New Users to Excel 11 January 3rd 06 10:11 AM
Production CLock Thorrrr Excel Worksheet Functions 0 May 2nd 05 06:00 PM
how do you subtract military time? example 12:00 - 07:00 = 5 hour. Bill Excel Worksheet Functions 1 October 27th 04 08:25 PM


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