LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
sky
 
Posts: n/a
Default Calculate time difference between cells

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
 
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
Cells with time format and calculating the diffrence MikeR-Oz New Users to Excel 11 January 3rd 06 10:11 AM
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 12:42 PM
Calculate difference between 2 date and times with average Aeryn635 Excel Discussion (Misc queries) 1 December 15th 05 02:56 AM
Calculate the difference between two times Svetlana Excel Worksheet Functions 3 July 13th 05 10:02 PM
add time to cells Michael H. Cox Excel Worksheet Functions 1 May 20th 05 12:43 AM


All times are GMT +1. The time now is 01:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"