How to Sum Time Values for the Same Date in Excel
Question details
The user needs to sum multiple time durations associated with specific dates without having to manually adjust criteria for each day.

- 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.
Ensure your target cell contains a valid numeric Excel date by checking it with the =ISNUMBER(A2) function before applying any sum formulas.
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.
Click on the cell where you want the total time to appear (for example, DailyTotals!B2).
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.
Right-click the result cell and select 'Format Cells' from the context menu.
Navigate to the 'Custom' category and apply the format [h]:mm or [h]:mm:ss to correctly display accumulated time that exceeds 24 hours.

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. Open your data file: Launch WPS Spreadsheet and open your timesheet or session log file containing the dates and durations.
- 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. 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.

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.




