I use excel to track my training and I’ve got a problem with an addition calculation.
If anyone knows excel well, I’d could really use some help before it drives me nuts!
I’m simply trying to add 4 cells together, but the result returned is not correct.
I can send you a copy if you think you could help.
What are the values of the 4 cells and what’s the result that you are getting?
Also check the format of the result cell. Right click on it, choose “Format”, I think its the 1st or 2nd tab that indicates how the cell should be formatted. Choose one of the number formats, if not already chosen.
Check the cells’ format. Under “Numbers”, see if the category is accidentally set to something like “fraction” or “date” (or “text”) or something else that makes Excel interpret the cell’s contents differently from what you intended.
Yep, looks like a formatting issue. Highlight all (or each one) and change format of each to Custom and then choose h:mm:ss. It doesn’t know your cells are in terms of time.
click into one of your fields. Go to menu/format/cells look at the category. It should be set to custom on the left hand pane and the right side should show h:m:ss. I put you numbers in and the result came back 30:57:36
No matter how I try to get excel to add it up it gives me 6:57:36.
Your cells are formatted to display clock time. If you start at 10:10 AM and the indicated lengths of time pass, you end up at 6:57 AM next day
Just change the settings in the Format menue.
Excel is horrible(it makes too many decisions for you) with calculating dates and times… i generally avoid using time formats and just do the calculations
Something like this:
A B C D
10:10:00 =HOUR(A1) =MINUTE(A1) =SECOND(A1)
6:55:00 =HOUR(B1) =MINUTE(B1) =SECOND(B1)
6:25:30 =HOUR(C1) =MINUTE(C1) =SECOND(C1)
7:27:06 =HOUR(D1) =MINUTE(D1) =SECOND(D1)
=SUM(B1:B4) =SUM(C1:C4) =SUM(D1:D4)
total
=B7&“:”&C7&“:”&D7 =B5+TRUNC(C5/60,0) =C5-60TRUNC(C5/60,0)+TRUNC(D5/60,0) =D5-60TRUNC(D5/60,0)