Solved

How to format Sum of hh:mm?

Posted on 2011-09-19
7
511 Views
Last Modified: 2012-05-12
Hello experts:

See attached example.  I have a data worksheet source showing hours & minutes but not formatted as such.  I want to sum two cells and format as hh:mm.  

Having trouble -- can you help?

Gary
Kronos-Employee-Weekly-Hrs-11082.xls
0
Comment
Question by:garyrobbins
7 Comments
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 36563203
Use this formula:

=SUM(I18+I16)*24

and format as a number with two decimal places.

Kevin
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 400 total points
ID: 36563210
Correction: use this formula:

=SUM(I18+I16)

and format as:

[HH]:MM

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 36563217
My first post displays hours and fractions of hours.

Kevin
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 25 total points
ID: 36563236
Right-click on the cell and select "Format Cells.." from the shortcut menu.
Select the Number tab, then select "Custom" from the list on the left.
In the Type box, enter the following
[h]:mm

Click OK

You should see 4444:25
0
 
LVL 5

Expert Comment

by:slycoder
ID: 36563242
I tried editing the cells to put :00 at the end, didn't work - so I put new values in column "P".

your values in column "I" are Mins and Secs, that's all



Corrected---Kronos-Employee-Week.xls
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 75 total points
ID: 36563616
>your values in column "I" are Mins and Secs

Not really, slycoder. They are text values which means if you simply sum them like

=SUM(I18,I16)

then you get zero because SUM ignores text

You can verify further by using this formula in a blank cell

=ISTEXT(I16)

You get TRUE

If you use an addition operator, i.e.

=I16+I18

then text values that look like real time or date values will be "co-erced" to those value - if excel sees a time value with a single semi-colon like 81:50 it will always interpret that value as hours and minutes (not minutes and seconds), so that last formula is a valid way to sum them - you don't need SUM function.

regards, barry
0
 

Author Closing Comment

by:garyrobbins
ID: 36563978
Thank you all for the prompt responses and for adding explanations.

Hope you are ok with my point assignment.

Gary
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
remove dups 10 37
Office 2016 without internet 6 38
Excel VBA User Form Help 21 29
Left trim cells in column A Excel vba 2 32
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question