Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
For example I have two times entered as 23:30 and 1:45 (but the next day) we are not entering the date just the time. Subtracting the two gets the correct answer but when the times wrap around midnight (as above) then there is a negative time difference and it is wrong. How can I keep entering just the basic time (without date) and take the difference and make this difference work around midnight? thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
With start time in A1 and end time in B1
=B1-A1+(B1<A1) or =MOD(B1-A1,2) don't forget to format result as time -- Regards, Peo Sjoblom "BillO" wrote in message ... Hi For example I have two times entered as 23:30 and 1:45 (but the next day) we are not entering the date just the time. Subtracting the two gets the correct answer but when the times wrap around midnight (as above) then there is a negative time difference and it is wrong. How can I keep entering just the basic time (without date) and take the difference and make this difference work around midnight? thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
=MOD(B1-A1,1) formatting as time. Alternatively, =B1-A1+(A1<B1) In article , BillO wrote: Hi For example I have two times entered as 23:30 and 1:45 (but the next day) we are not entering the date just the time. Subtracting the two gets the correct answer but when the times wrap around midnight (as above) then there is a negative time difference and it is wrong. How can I keep entering just the basic time (without date) and take the difference and make this difference work around midnight? thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Oops, switch that
=B1-A1+(B1<A1) In article , JE McGimpsey wrote: =B1-A1+(A1<B1) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change EXCEL Clock to Standard Clock or Military Time | Excel Worksheet Functions | |||
Calculating time past midnight. | Excel Discussion (Misc queries) | |||
subtraction off time after midnight | Excel Worksheet Functions | |||
Calculating Time Past Midnight | Excel Worksheet Functions | |||
Calculating time interval (some across midnight) | Excel Worksheet Functions |