phil_mccomb
New Member
- Joined
- Jul 21, 2013
- Messages
- 7
Hi,
I have a timekeeping spreadsheet that adds hours and minutes from start time to finish time.
This works fine if you finish before midnight, but as soon as you go past midnight it counts backwards?
Is there a way to ensure it always counts up? The formula looks like this: =IF(((E6-D6)*1440/60>5.49),(((E6-D6)*1440)/60),(((E6-D6)*1440)/60))
E6=Finish time and D6=Start time (I know the answer for both is the same, but I leave that format so I can subtract a lunch break when required)
The first line is incorrect because i want it to add hours from 09:30 on day 1 until 07:00 on day 2 (which should add up to 21.5 hrs, not -2.5 hrs)
[TABLE="width: 557"]
<tbody>[TR]
[TD="colspan: 2"]Employee[/TD]
[TD][/TD]
[TD]Start time[/TD]
[TD]Finish time[/TD]
[TD]Total hours[/TD]
[/TR]
[TR]
[TD="colspan: 2"]McComb, Phil[/TD]
[TD][/TD]
[TD]9:30[/TD]
[TD]7:00[/TD]
[TD]-2.50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]McComb, Phil[/TD]
[TD][/TD]
[TD]9:30[/TD]
[TD]19:00[/TD]
[TD]9.50[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.
I have a timekeeping spreadsheet that adds hours and minutes from start time to finish time.
This works fine if you finish before midnight, but as soon as you go past midnight it counts backwards?
Is there a way to ensure it always counts up? The formula looks like this: =IF(((E6-D6)*1440/60>5.49),(((E6-D6)*1440)/60),(((E6-D6)*1440)/60))
E6=Finish time and D6=Start time (I know the answer for both is the same, but I leave that format so I can subtract a lunch break when required)
The first line is incorrect because i want it to add hours from 09:30 on day 1 until 07:00 on day 2 (which should add up to 21.5 hrs, not -2.5 hrs)
[TABLE="width: 557"]
<tbody>[TR]
[TD="colspan: 2"]Employee[/TD]
[TD][/TD]
[TD]Start time[/TD]
[TD]Finish time[/TD]
[TD]Total hours[/TD]
[/TR]
[TR]
[TD="colspan: 2"]McComb, Phil[/TD]
[TD][/TD]
[TD]9:30[/TD]
[TD]7:00[/TD]
[TD]-2.50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]McComb, Phil[/TD]
[TD][/TD]
[TD]9:30[/TD]
[TD]19:00[/TD]
[TD]9.50[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance.