[Solved] Working Hours (over 24 per week)

Discuss the spreadsheet application
Post Reply
Morgaine
Posts: 1
Joined: Mon Apr 15, 2013 1:14 am

[Solved] Working Hours (over 24 per week)

Post by Morgaine »

timesheet.ods
(15.73 KiB) Downloaded 123 times
I am having trouble with my timesheet.

Attached is the offending article. As you can see the first week I recorded the spreadsheet worked fine and it recorded the 30 hours worked.

I copied and pasted the first week and now when I look at the totals I can't get them to go over 24 hours. I have tried [hh]:mm but that didn't work. I'm baffled as to why this worked fine the first time but not on the copy.
Last edited by Morgaine on Mon Apr 15, 2013 3:09 pm, edited 3 times in total.
OpenOffice 3.4.0 on Windows xp
thinman3
Volunteer
Posts: 382
Joined: Sat Jul 11, 2009 8:53 pm

Re: Working Hours (over 24 per week)

Post by thinman3 »

Have sent a PM to Morgaine that nothing got uploaded to the forums.

thinman3
3.4.1 & 4.1.5 on MS Windows 7 Pro x64
User avatar
Villeroy
Volunteer
Posts: 31363
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Working Hours (over 24 per week)

Post by Villeroy »

Number format [HH]:MM (with brackets) might solve this.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
fst
Volunteer
Posts: 152
Joined: Wed Nov 28, 2007 2:31 pm

Re: Working Hours (over 24 per week)

Post by fst »

Hi,

the problem is in cells F65 and F96.

If you want to get a difference over two days, you have to enter the times with the date information:

D96: 14.04.2013 23:15:00 (for April 14, 2013 23:15h)
E96: 15.04.2013 0:10 (for April 15, 2013 00:10h)

You might check the other data in D7:E51 as well.

Frank
Frank

If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [solved]Working Hours (over 24 per week)

Post by acknak »

The usual way to handle this (finding elapsed time where start/end may span midnight) is to replace a simple end-start with: end-start+(end<start)

So instead of =E65-D65, you use =E65-D65+(D65>E65)

It looks like there are also some bad entries. For example, F25 records a visit of >24 hours.
AOO4/LO5 • Linux • Fedora 23
Post Reply