Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to calculate the time difference between to cells. I have a
formula that works ok unless the difference is in excess of 24 hours. I am using time data only in the cells 08:00, 18:00 etc.. current formula; =IF(I29="","",IF(J28="","",(IF(J28<I29,I29-J28,(IF(J28I29,24-J28+I29)))))) What I want to do: column I column J column K column L (formula above in L) Clock-in Clock-out Total HRs worked hours off between J2 & I3 1 08:00 20:00 12:00 [Blank] didn"t work day bfr 2 06:00 19:00 13:00 10 3 20:00 08:00 12:00 25 What I get in L3 now is 1. Any Suggestions??? -- skyknight |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Format those cells as [h]:mm
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "sky" wrote in message ... I am trying to calculate the time difference between to cells. I have a formula that works ok unless the difference is in excess of 24 hours. I am using time data only in the cells 08:00, 18:00 etc.. current formula; =IF(I29="","",IF(J28="","",(IF(J28<I29,I29-J28,(IF(J28I29,24-J28+I29)))))) What I want to do: column I column J column K column L (formula above in L) Clock-in Clock-out Total HRs worked hours off between J2 & I3 1 08:00 20:00 12:00 [Blank] didn"t work day bfr 2 06:00 19:00 13:00 10 3 20:00 08:00 12:00 25 What I get in L3 now is 1. Any Suggestions??? -- skyknight |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I tried that and it did not make a difference. The problem is with the
formula. When I calculate a time off between one day and the next, if the time off is in excess of 24 hours it computes it as being on the same day and returns a 1 for 25 hours off or a 2 for 26 etc... BTW - the data in the cells is time only. I have some non-computer folks that have a hard time remembering how to format date and time in a cell. Any other suggestions would be greatly appreciated. -- skyknight "Bob Phillips" wrote: Format those cells as [h]:mm -- HTH Bob Phillips (remove nothere from email address if mailing direct) "sky" wrote in message ... I am trying to calculate the time difference between to cells. I have a formula that works ok unless the difference is in excess of 24 hours. I am using time data only in the cells 08:00, 18:00 etc.. current formula; =IF(I29="","",IF(J28="","",(IF(J28<I29,I29-J28,(IF(J28I29,24-J28+I29)))))) What I want to do: column I column J column K column L (formula above in L) Clock-in Clock-out Total HRs worked hours off between J2 & I3 1 08:00 20:00 12:00 [Blank] didn"t work day bfr 2 06:00 19:00 13:00 10 3 20:00 08:00 12:00 25 What I get in L3 now is 1. Any Suggestions??? -- skyknight |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If it is time only, how does it know it is more than one day?
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "sky" wrote in message ... I tried that and it did not make a difference. The problem is with the formula. When I calculate a time off between one day and the next, if the time off is in excess of 24 hours it computes it as being on the same day and returns a 1 for 25 hours off or a 2 for 26 etc... BTW - the data in the cells is time only. I have some non-computer folks that have a hard time remembering how to format date and time in a cell. Any other suggestions would be greatly appreciated. -- skyknight "Bob Phillips" wrote: Format those cells as [h]:mm -- HTH Bob Phillips (remove nothere from email address if mailing direct) "sky" wrote in message ... I am trying to calculate the time difference between to cells. I have a formula that works ok unless the difference is in excess of 24 hours. I am using time data only in the cells 08:00, 18:00 etc.. current formula; =IF(I29="","",IF(J28="","",(IF(J28<I29,I29-J28,(IF(J28I29,24-J28+I29)))))) What I want to do: column I column J column K column L (formula above in L) Clock-in Clock-out Total HRs worked hours off between J2 & I3 1 08:00 20:00 12:00 [Blank] didn"t work day bfr 2 06:00 19:00 13:00 10 3 20:00 08:00 12:00 25 What I get in L3 now is 1. Any Suggestions??? -- skyknight |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cells with time format and calculating the diffrence | New Users to Excel | |||
Calculating Difference Between Start Date & Time And End Date & Ti | Excel Discussion (Misc queries) | |||
Calculate difference between 2 date and times with average | Excel Discussion (Misc queries) | |||
Calculate the difference between two times | Excel Worksheet Functions | |||
add time to cells | Excel Worksheet Functions |