SOLVED

summing h:mm columns

%3CLINGO-SUB%20id%3D%22lingo-sub-1962801%22%20slang%3D%22en-US%22%3Esumming%20h%3Amm%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962801%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20everyone.%3C%2FP%3E%3CP%3EHow%20do%20I%20correctly%20sum%20various%20h%3Amm%20columns%3F%20Straight%20SUM%20function%20of%20the%20columns%20not%20producing%20the%20correct%20total%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1962801%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962911%22%20slang%3D%22de-DE%22%3ESubject%3A%20summing%20h%3Amm%20columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962911%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F893487%22%20target%3D%22_blank%22%3E%40bookker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22ccvoYb%22%3E%3CDIV%20class%3D%22AxqVh%22%3E%3CDIV%20class%3D%22OPPzxe%22%3E%3CDIV%20class%3D%22dePhmb%22%3E%3CDIV%20class%3D%22eyKpYb%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22kGmWO%22%3E%3CP%3ETime%20tracking%20in%20Excel%3A%20how%20to%20add%20hours%20correctly%3C%2FP%3E%3CP%3EGo%20to%20the%20cell%20where%20you%20will%20be%20doing%20the%20summation%20of%20hours.%3C%2FP%3E%3CP%3ERight-click%20on%20the%20cell%20and%20select%20format%20cells%20from%20the%20context%20menu.%3C%2FP%3E%3CP%3EIn%20the%20Type%20field%2C%20change%20the%20default%20value%20%22hh%3A%20mm%22%20to%20%22%5Bhh%5D%3A%20mm%22.%3C%2FP%3E%3CP%3EThe%20brackets%20ensure%20that%20Excel%20no%20longer%20suppresses%20the%20hours%20that%20go%20beyond%20a%20day.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20is%20why%20your%20time%20and%20attendance%20record%20gives%20incorrect%20sums%3C%2FP%3E%3CP%3EActually%2C%20calculating%20with%20hours%20and%20minutes%20in%20Excel%20is%20very%20simple%3A%20You%20write%20the%20hours%20and%20minutes%20in%20the%20desired%20cells%20separated%20by%20a%20colon%2C%20ie%20%228%3A30%22%20for%208.5%20hours%20and%20add%20the%20individual%20values.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20result%20is%20then%20only%20correct%20as%20long%20as%20the%20total%20remains%20below%20the%20value%20of%2024%20hours.%20Because%20the%20portion%20of%20the%20sum%20that%20goes%20beyond%20a%20day%20simply%20falls%20under%20the%20table.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAn%20example%3A%20In%20one%20week%20you%20have%20accumulated%20the%20following%20hours%3A%2051%2F2%2C%207%2C%2061%2F2%2C%207%2C%2041%2F2.%20This%20adds%20up%20to%20a%20working%20week%20of%2030.5%20hours%20if%20you%20add%20it%20up%20in%20the%20conventional%20way.%3C%2FP%3E%3CP%3EExcel%20calculates%20correctly%20in%20itself%2C%20but%20only%20shows%20part%20of%20the%20result.%20The%20value%20in%20cell%20B7%20has%20the%20correct%20numerical%20value%20internally.%20For%20example%2C%20if%20you%20reformatted%20the%20sum%20cell%20B7%20as%20a%20%22number%22%2C%20the%20correct%20value%20would%20be%2030.5.%3C%2FP%3E%3CTABLE%20border%3D%220%22%20width%3D%22160%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2280%22%20height%3D%2220%22%3EDay%3C%2FTD%3E%3CTD%20width%3D%2280%22%3EWorktime%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EMonday%3C%2FTD%3E%3CTD%3E05%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3ETuesday%3C%2FTD%3E%3CTD%3E07%3A00%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EWednesday%3C%2FTD%3E%3CTD%3E06%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EThursday%3C%2FTD%3E%3CTD%3E07%3A00%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EFriday%3C%2FTD%3E%3CTD%3E04%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3ETtl%3C%2FTD%3E%3CTD%3E06%3A30%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3EThe%20incorrect%20displayed%20value%20of%206%20hours%20and%2030%20minutes%20is%20purely%20a%20display%20problem.%20Because%20with%20the%20basic%20formatting%20of%20time%20values%2C%20Excel%20only%20shows%20values%20over%2024%20hours%20that%20go%20beyond%20a%20day.%20So%20here%2030.5%20-%2024%20%3D%206.5%20hours.%3C%2FP%3E%3CTABLE%20border%3D%220%22%20width%3D%22160%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2280%22%20height%3D%2220%22%3EDay%3C%2FTD%3E%3CTD%20width%3D%2280%22%3EWorktime%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EMonday%3C%2FTD%3E%3CTD%3E05%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3ETuesday%3C%2FTD%3E%3CTD%3E07%3A00%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EWednesday%3C%2FTD%3E%3CTD%3E06%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EThursday%3C%2FTD%3E%3CTD%3E07%3A00%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3EFriday%3C%2FTD%3E%3CTD%3E04%3A30%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20height%3D%2220%22%3ETtl%3C%2FTD%3E%3CTD%3E30%3A30%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3EOnly%20by%20changing%20the%20cell%20formatting%20to%20%22%5Bhh%5D%3A%20mm%22%20does%20Excel%20show%20the%20correct%20hourly%20total.%3C%2FP%3E%3CP%3EIf%20you%20also%20work%20with%20hours%20beyond%20a%20day%20in%20the%20individual%20summands%2C%20you%20should%20reformat%20these%20cells%20in%20the%20same%20way.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3CP%3E*%20Kindly%20Mark%20and%20Vote%20this%20reply%20if%20it%20helps%20please%2C%20as%20it%20will%20be%20beneficial%20to%20more%20community%20members%20reading%20here.%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
New Contributor

How everyone.

How do I correctly sum various h:mm columns? Straight SUM function of the columns not producing the correct total?

2 Replies
best response confirmed by bookker (New Contributor)
Solution

@bookker 

 

Time tracking in Excel: how to add hours correctly

Go to the cell where you will be doing the summation of hours.

Right-click on the cell and select Format cells from the context menu.

In the Type field, change the default value “hh: mm” to “[hh]: mm”.

The brackets ensure that Excel no longer suppresses the hours that go beyond a day.

 

That is why your time and attendance record gives incorrect sums

Actually, calculating with hours and minutes in Excel is very simple: You write the hours and minutes in the desired cells separated by a colon, ie “8:30” for 8.5 hours and add the individual values.

 

The result is then only correct as long as the total remains below the value of 24 hours. Because the portion of the sum that goes beyond a day simply falls under the table.

 

An example: In one week you have accumulated the following hours: 5½, 7, 6½, 7, 4½. This adds up to a working week of 30.5 hours if you add it up in the conventional way.

Excel calculates correctly in itself, but only shows part of the result. The value in cell B7 has the correct numerical value internally. For example, if you reformatted the sum cell B7 as a “number”, the correct value would be 30.5.

DayWorktime
Monday05:30
Tuesday07:00
Wednesday06:30
Thursday07:00
Friday04:30
TTL06:30

The incorrect displayed value of 6 hours and 30 minutes is purely a display problem. Because with the basic formatting of time values, Excel only shows values ​​over 24 hours that go beyond a day. So here 30.5 - 24 = 6.5 hours.

DayWorktime
Monday05:30
Tuesday07:00
Wednesday06:30
Thursday07:00
Friday04:30
TTL30:30

Only by changing the cell formatting to “[hh]: mm” does Excel show the correct hourly total.

If you also work with hours beyond a day in the individual summands, you should reformat these cells in the same way.

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

Thanks Nikolino- it worked out great and your answer was clearly articulated :).
I have marked and voted.