However, by default, Excel will only display hours and minutes up to 24 hours.

All data is in anExcel Tablenameddatain the range B5:E16.

The table is used for convenience only, and is not required to solve the problem.

Dates and times with general number format applied

The main challenge in this example is to correctly display time as a duration instead of time of day.

How Excel handles times

In Excel,dates are serial numbersandtimes are fractional parts of 1 day.

The times in column E are just fractional values of one day, expressed as decimal values.

Dates and times with general number format applied

This means you’re free to use standard functions like SUM and SUMIF, etc.

to sum time in various ways.

But you have to be careful about how the result is displayed.

Dates and times with general number format applied

But in cases where time is meant to show aduration(i.e.

elapsed time), the problem is that Excel will not display more than 24 hours by default.

you could see how this works in the screen below.

Dates and times with general number format applied

Time per person

To calculate time logged per person, we use theSUMIF function.

As the formula is copied down, SUMIF returns total hours per person.

The range H8:H10 has the custom time format “[h]:mm” applied.

Dates and times with general number format applied

For more information on number formats, seeExcel Custom Number formats.

These values can be numbers, cell references, ranges, arrays, and constants, in any combination.

SUM can handle up to 255 individual arguments.

Example of incorrect total hours

SUMIF Function

The Excel SUMIF function returns the sum of cells that meet a single condition.

Criteria can be applied to dates, numbers, and text.

Total hours with different time formats

Applying a custom time format to show time as a duration

Excel formula: Sum time with SUMIFS

Excel formula: Sum time by week and project

Excel formula: Sum time over 30 minutes

Excel formula: Remove time from timestamp

Excel formula: Basic timesheet formula with breaks

Excel SUM function

Excel SUMIF function

Dates and times with general number format applied

Applying a custom time format to show time as a duration