Calculation Issues

Sum or Filter Time Values by Date in Excel

Tauseeq MagsiTauseeq Magsi Dec 2, 2026 869 views

Question details

Calculate or filter lost-time entries for a specific date across multiple weeks of worksheet data.

How to Sum or Filter Time Values by Date in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the target date

Type the date you want to summarize in cell D2. Enter a date without a time component.

2
Calculate the total

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.

3
Format the duration

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.

Sum durations for a selected date with SUMIFS
Date-only entries: If column A contains dates without times, you can also use =SUMIFS(B:B,A:A,D2). For a fixed date, use =SUMIFS(B:B,A:A,DATE(2022,11,2)).
Calculate durations in WPS Spreadsheets

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. 1. Open the worksheet: Open your Excel workbook in WPS Spreadsheets and identify the date and duration columns.
  2. 2. Enter the date: Type the date to summarize in cell D2, without a time component.
  3. 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. 4. Format the total: Select the result cell, open Format Cells, choose Custom, and enter [h]:mm.
Sum durations for a date across multiple weeks of entriesDisplay totals over 24 hours with the [h]:mm formatOpen and edit Microsoft Excel XLSX and XLS filesWork with a familiar spreadsheet interface
microsoft office alternative - wps office

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).