NUMBERS - Show hours with a decimal point

Joined
Oct 8, 2017
Messages
2
Reaction score
0
Points
1
I have a column that lists durations, and has a sum at the bottom. I need to convert the cell with the sum to hours with 3 decimal points.

F7 2h 15m
F8 1h 10m
F9 3h 5m
F10 6h 30m (SUM F7:F9)

I need F11 to be 6.500

Every time I try to do this - it automatically changes the cell to duration format - and even if I change it to hours only - it rounds it up to 7h.

Any help is appreciated.
 
OP
C
Joined
Oct 8, 2017
Messages
2
Reaction score
0
Points
1
Numbers - syntax error in sum cell when blank

I am creating a time sheet - I want to add two duration columns (Total Hours Excluding Travel and Travel/Mileage). If there is a duration in at least one of the columns - it works fine. However - when both of the columns are blank - it has a syntax error.

It is important to note - that the Total Hours Excluding Travel Column has this formula: IF((D7−C7)−E7=0,"",((D7−C7)−E7))
However - if I remove that formula - I get the same syntax error if columns C through E are blank (Time Started, Time Finished & Lunch Break).

Please help!

Screen Shot 2017-10-08 at 3.18.39 PM.png
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Welcome to our forums.

Joined both of your posts together as they can be answered together.
 
M

MacInWin

Guest
It is important to note - that the Total Hours Excluding Travel Column has this formula: IF((D7−C7)−E7=0,"",((D7−C7)−E7))
However - if I remove that formula - I get the same syntax error if columns C through E are blank (Time Started, Time Finished & Lunch Break).
Welcome to the forum.

You cut them off in the image, but I'll assume the columns are A through I in the image.

Can you tell us what that quote means? Do you mean that if the formula is not in the Total Hours Excluding Travel Column then you get an error in the formula for the sum of that plus Column G in Column H? Or is something else going on. It's not clear from your description. Part of the problem may be that by putting a null (the "") in the cell if the sum comes to 0, you are putting a text symbol in a time column or numeric column, which then creates a syntax error in the other formula. You might try changing the "" to a 0, and see if that works. If the 0 is unacceptable (even if accurate) then you may have to do some extensive work to nest IF statements to handle the 0 condition.
 
Joined
Oct 17, 2017
Messages
10
Reaction score
1
Points
3
Location
SE Pa USA
Your Mac's Specs
Mid 11 Mac Mini, 2.5Gh i5, 16 GB Ram, 500 Gb SSD Sys disk, 1 Tb Data disk
Assuming that this syntax is like Excel, which it appears to be, then your formula is syntactically ambiguous. Try this:

If(( D7 - ( C7 + E7)) <= 0,"", ( D7 - ( C7 + E7))

Group like this, Works in Excel at least.
 
Joined
Oct 17, 2017
Messages
10
Reaction score
1
Points
3
Location
SE Pa USA
Your Mac's Specs
Mid 11 Mac Mini, 2.5Gh i5, 16 GB Ram, 500 Gb SSD Sys disk, 1 Tb Data disk
As for your first problem try formatting the cells containing totals as a 2 decimal number instead of time and use a formula like: 24*sum(F7:F9)

Not sure this will work but in Excel it does something indicating it probably will. The exact time format you use is not available to me in Excel so can't say for sure.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top