Microsoft Excel makes it easy to create spread­sheets, but its wide range of cal­cu­la­tion functions are also extremely popular. The SUM function is probably the most commonly used function. It lets you quickly add up many different kinds of values. But what if you want to add up hours and minutes instead of simple numbers? This is also easy to do, but it requires some prepa­ra­tion.

$1 Domain Names – Grab your favorite one
  • Simple reg­is­tra­tion
  • Premium TLDs at great prices
  • 24/7 personal con­sul­tant included
  • Free privacy pro­tec­tion for eligible domains

Cal­cu­lat­ing hours in Excel: What’s so difficult?

Adding numbers is generally no problem. But if you've ever added up times by hand, you know that it’s different than adding up numbers. Times are divided into hours, minutes, and seconds, and require a different procedure. If you want to add an hour and 40 minutes to two hours and 30 minutes, the result shouldn’t be 3 hours and 70 minutes, but 4 hours and 10 minutes. Therefore, you have to tell Excel how to handle the values. You also have to ensure that Excel doesn’t mix hours and time periods: For example, you don’t want 7 am to be in­ter­pret­ed as 7 hours.

Fact

There are many different sit­u­a­tions in which you have to add times in Excel. A good example: When you create a time sheet in Excel, you can’t afford to have any errors in the cal­cu­la­tion. The Excel spread­sheet must contain the formulas to au­to­mat­i­cal­ly calculate the correct hours worked by each employee.

How to calculate hours in Excel with format ad­just­ment

You can format cells in Excel in a variety of ways. This allows you to tell Excel what kind of in­for­ma­tion a field contains and how to display the input. To do this, first select the area where you want to place the times, then right-click in the area and select “Format cells...”. In the window that opens, you can select a wide variety of formats (such as text or cur­ren­cies). Choose “Time” for Excel to add up hours.

Tip

You use a colon to separate hours, minutes, and seconds in Excel.

You can choose between different types of display formats in Excel. For example, you can set a 24-hour clock or display the time in a 12-hour format. Choose a format that contains hours and minutes (and possibly seconds) and select “OK.” Now you can add up the cells with the SUM function as usual. Excel will correctly recognize hours and minutes and adjust the result. If you enter the SUM function via the wizard (fx icon next to the formula bar), you can see from the preview values that Excel converts the times in­ter­nal­ly.

Note

In many sit­u­a­tions, you don't have to adjust the format yourself. Excel usually au­to­mat­i­cal­ly detects that you’ve specified times and changes the format on its own.

Cal­cu­la­tion can be prob­lem­at­ic if you want to use Excel to add times that exceed 24 hours, the limit for one day. Since we formatted Excel to display a time, it ignores the new day resulting from cal­cu­la­tion and displays only the time on the new day. In other words, it only displays the part of the total that is greater than 24. Excel actually performed the cal­cu­la­tion correctly, but the result is not displayed correctly.

So, if you want to add values that exceed the 24-hour limit, you need to open the “Format Cells” window again. Once there, choose “Custom” from the list. Under “Type,” enter “[hh]:mm”. This creates a format with two-digit hour and minute displays (a leading zero is inserted for a single-digit value). The square brackets ensure that the hours are counted even though the limit for a new day has the­o­ret­i­cal­ly been reached.

This method of using custom format types also allows you to include days in the output or display minutes only. You would choose “dd:hh:mm” to add hours for full days in Excel. On the other hand, “[mm]:ss” would display only minutes and seconds.

Tip

The values can also be displayed dif­fer­ent­ly from the sum. For example, you can display values over 24 hours in each cell, and then choose to display days in the result cell.

Of course you can also subtract hours in Excel. Excel doesn’t have a separate function for sub­trac­tion. You use the minus sign in the SUM function instead. For example, you can calculate the amount of time between a start and end time. To do this, subtract the cell with the earlier time from the later time.

HiDrive Cloud Storage
Store and share your data on the go
  • Store, share, and edit data easily
  • Backed up and highly secure
  • Sync with all devices
Go to Main Menu