Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Calculate time difference between cells

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   Report Post  
Posted to microsoft.public.excel.misc
sky
 
Posts: n/a
Default Calculate time difference between cells

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   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Calculate time difference between cells

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
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 08:57 PM.

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"