Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I read that you can do (B1-A1)*24 but for the values where A is in PM and B
is in AM this returns a negative hour much larger than what it should be. Any recommendations? Thanks. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try...
=(B1-A1+(B1<A1))*24 Hope this helps! In article , Fletch74 wrote: I read that you can do (B1-A1)*24 but for the values where A is in PM and B is in AM this returns a negative hour much larger than what it should be. Any recommendations? Thanks. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try:
=MOD((B1-A1),1)*24 "Domenic" wrote: Try... =(B1-A1+(B1<A1))*24 Hope this helps! In article , Fletch74 wrote: I read that you can do (B1-A1)*24 but for the values where A is in PM and B is in AM this returns a negative hour much larger than what it should be. Any recommendations? Thanks. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, both work. =D
"Toppers" wrote: Try: =MOD((B1-A1),1)*24 "Domenic" wrote: Try... =(B1-A1+(B1<A1))*24 Hope this helps! In article , Fletch74 wrote: I read that you can do (B1-A1)*24 but for the values where A is in PM and B is in AM this returns a negative hour much larger than what it should be. Any recommendations? Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mileage Claim Formula | New Users to Excel | |||
formula to subtract time, 12:10 am (00:10) - 11:50 pm (23:10) ? | New Users to Excel | |||
How to calculate Date & Time differences | Excel Worksheet Functions | |||
Excel Time Manipulation | Excel Discussion (Misc queries) | |||
conditional formatting with time values | Excel Discussion (Misc queries) |