logo
search
Function Problems

How to Sum Time Values for the Same Date in Excel

Elise WilliamsElise Williams Oct 10, 2026 870 views

Question details

The user needs to sum multiple time durations associated with specific dates without having to manually adjust criteria for each day.

How to Sum Time Values for the Same Date in Excel
Product
Excel
Device & OS
not provided
Scenario
Calculating daily totals of recorded session durations based on matching dates in a timesheet or log.
Observed behavior
The user wants to total all time values recorded during a single day dynamically and accurately accumulate the hours.
Before you start

Ensure your target cell contains a valid numeric Excel date by checking it with the =ISNUMBER(A2) function before applying any sum formulas.

Solution 1Recommended

Calculate Daily Time Totals Using the SUMIFS Function

Use the SUMIFS formula to dynamically sum time durations that fall within a 24-hour period of a specified date.

Excel stores dates and times as serial numbers, meaning a single day is represented as an integer of 1. By setting a condition to sum values greater than or equal to the selected date and strictly less than the selected date plus one, you effectively capture all time entries for that specific day without manually changing the criteria.

1
Select the target cell

Click on the cell where you want the total time to appear (for example, DailyTotals!B2).

2
Enter the SUMIFS formula

Type the formula: =SUMIFS(Sessions!$D$2:$D$1500, Sessions!$A$2:$A$1500, ">="&A2, Sessions!$A$2:$A$1500, "<"&A2+1) and press Enter. Adjust the column references based on your actual data layout.

3
Open cell formatting

Right-click the result cell and select 'Format Cells' from the context menu.

4
Apply cumulative time format

Navigate to the 'Custom' category and apply the format [h]:mm or [h]:mm:ss to correctly display accumulated time that exceeds 24 hours.

Calculate Daily Time Totals Using the SUMIFS Function
Formula Logic: The logic "<"&A2+1 is highly effective because it automatically sets the upper boundary to exactly the start of the next day, capturing all timestamps within the current day.
Efficient Data Calculation with WPS

Easily Sum Data by Date with WPS Spreadsheet

WPS Office Spreadsheet fully supports complex formulas like SUMIFS and custom time formatting. It provides a familiar, fast, and highly compatible environment for managing your daily logs and calculating durations seamlessly.

  1. 1. Open your data file: Launch WPS Spreadsheet and open your timesheet or session log file containing the dates and durations.
  2. 2. Input the calculation formula: Select your target cell and input the SUMIFS formula to calculate total durations based on your selected date cell.
  3. 3. Format the total cell: Press Ctrl+1 to open the Format Cells dialog, select Custom, and enter [h]:mm:ss to display the total accumulated hours correctly.
100% compatible with Microsoft Excel formulas including SUMIFS and ISNUMBER.Fully supports advanced custom cell formatting for precise cumulative time tracking ([h]:mm).Lightweight and fast application that handles large datasets without lagging.Includes free built-in templates for daily tracking, logs, and time sheets.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my sum show a lower time than expected when totaling durations?

Standard time formatting resets after 24 hours (for example, 25 hours displays as 1:00). To fix this, right-click the cell, select Format Cells, choose Custom, and use brackets around the hour like [h]:mm or [h]:mm:ss to display cumulative total hours.

How can I check if my date cells are actually recognized as dates?

You can use the formula =ISNUMBER(A2). If the result is TRUE, the software correctly recognizes the cell as a valid numeric date. If it returns FALSE, the date is likely stored as text and needs to be converted.

Can I use SUMIF instead of SUMIFS for this calculation?

Because calculating time within a specific date requires two criteria (greater than or equal to the start of the day, AND less than the start of the next day), you must use SUMIFS. The basic SUMIF function only supports a single condition.