Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to calculate hours on Microsoft Excel and when I type in 4:00 PM
being the starting time and 12:00 AM as being the ending time it is giving the result of -16.5 hours worked when in reality it should be 7.5 hours worked. Can anyone help me figure out why this is happening and how I can fix it? Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
12:00:00 AM is midnight of the current day (as I'm typing this, it's about
15.5 hours ago, not 8.5 hours from now). So it's earlier than 4:00 PM. You should probably take a minute off each: 3:59:59 PM and 11:59:59 PM and it won't be negative, OR (better), put in the date: 9/29/09 04:00 PM and 9/30/09 12:00:00 AM "pwide06" wrote in message ... I am trying to calculate hours on Microsoft Excel and when I type in 4:00 PM being the starting time and 12:00 AM as being the ending time it is giving the result of -16.5 hours worked when in reality it should be 7.5 hours worked. Can anyone help me figure out why this is happening and how I can fix it? Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() A B C 29-Sep-09 04:00 PM 30-Sep-09 12:00 AM 8:00 when it becomes 12:00 AM, it becomes next day. so try to put in the entire date and time in the cells (and formate cells as HH:MM, so it displays only the time) and use the formula in C1 as =B1-A1 -kc *Click YES if this works C1 returns 16:00 which is correct "pwide06" wrote: I am trying to calculate hours on Microsoft Excel and when I type in 4:00 PM being the starting time and 12:00 AM as being the ending time it is giving the result of -16.5 hours worked when in reality it should be 7.5 hours worked. Can anyone help me figure out why this is happening and how I can fix it? Thanks in advance. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I type in 4:00 PM being the starting time and 12:00 AM
as being the ending time it is giving the result of -16.5 hours worked when in reality it should be 7.5 The result should be 8 hours unless you're subtracting an additional 1/2 hour. For a result in decimal format: A1 = start time B1 = end time =MOD(B1-A1,1)*24 Format as General or Number -- Biff Microsoft Excel MVP "pwide06" wrote in message ... I am trying to calculate hours on Microsoft Excel and when I type in 4:00 PM being the starting time and 12:00 AM as being the ending time it is giving the result of -16.5 hours worked when in reality it should be 7.5 hours worked. Can anyone help me figure out why this is happening and how I can fix it? Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Time difference from 24 hours | Excel Discussion (Misc queries) | |||
Calculating the difference between hours | Excel Worksheet Functions | |||
How Do I Get The Difference In Hours and Mins | Excel Worksheet Functions | |||
How to get difference in hours | Excel Worksheet Functions | |||
Difference in Hours | Excel Discussion (Misc queries) |