Sum or Filter Time Values by Date in Excel
Question details
Calculate or filter lost-time entries for a specific date across multiple weeks of worksheet data.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains dates in one column and lost-time durations in another.
- Observed behavior
- The user wants to identify the rows for a chosen date and calculate their total duration.
Check that the date column contains Excel date values and that lost-time entries are numeric durations rather than text. The examples below use column A for dates, column B for durations, and cell D2 for the date to summarize.
Sum durations for a selected date with SUMIFS
Use a date range to include all entries on the selected date, even when the date cells contain times.
Type the date you want to summarize in cell D2. Enter a date without a time component.
Select an empty cell and enter =SUMIFS(B:B,A:A,">="&D2,A:A,"<"&D2+1). This includes dates and timestamps from the start of D2 through, but not including, the next day.
Select the result, open Format Cells, choose Custom, and enter [h]:mm as the format. This displays cumulative hours correctly when the total exceeds 24 hours.

Filter the worksheet to show entries for one date
Use a date filter when you want to inspect the matching rows rather than calculate a total.
Sum lost time by date in WPS Spreadsheets
Use SUMIFS in WPS Spreadsheets to total durations for a selected date, including entries with timestamps, and format the result as cumulative hours.
- 1. Open the worksheet: Open your Excel workbook in WPS Spreadsheets and identify the date and duration columns.
- 2. Enter the date: Type the date to summarize in cell D2, without a time component.
- 3. Enter the formula: In an empty cell, enter =SUMIFS(B:B,A:A,">="&D2,A:A,"<"&D2+1), adjusting the column references if needed.
- 4. Format the total: Select the result cell, open Format Cells, choose Custom, and enter [h]:mm.

Frequently Asked Questions
Why does an exact date match miss some rows?
Cells in column A may contain a time as well as a date. Use =SUMIFS(B:B,A:A,">="&D2,A:A,"<"&D2+1) to include all timestamps on the date in D2.
How do I show a total longer than 24 hours?
Select the total cell, open Format Cells, choose Custom, and enter [h]:mm. The brackets prevent the hour count from resetting after 24 hours.
Can I use a date directly in the formula?
Yes. If column A contains dates without times, use a formula such as =SUMIFS(B:B,A:A,DATE(2022,11,2)).
Does SUMIFS ignore rows hidden by a filter?
No. SUMIFS includes matching rows even if a filter hides them. To sum only visible durations, use a bounded SUBTOTAL formula such as =SUBTOTAL(109,B2:B100).




