Calculation Issues

Count and Sum Excel Records by Date While Ignoring Time

Maira MehtabMaira Mehtab Nov 18, 2026 871 views

Question details

Calculate daily record counts and totals from Excel timestamps without matching the time portion.

Count and Sum Excel Records by Date While Ignoring Time
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains timestamped records and the user wants results for a selected date.
Observed behavior
The desired formulas include all records from the start of the selected date up to, but not including, the start of the next day.
Before you start

Make sure the timestamps and selected date are stored as Excel date values, not text. In the examples below, timestamps are in A2:A100, amounts are in B2:B100, and the selected date is in E2.

Solution 1Recommended

Use COUNTIFS and SUMIFS with a Date Range

Count records and sum amounts for a selected day, regardless of the time in each timestamp.

The lower bound includes midnight on the selected date, while the upper bound excludes midnight on the following date. INT removes any time from the selected date in E2.

1
Enter the selected date

Type the date you want to analyze in cell E2.

2
Count matching records

Select an empty cell and enter =COUNTIFS(A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).

3
Sum matching amounts

Select another empty cell and enter =SUMIFS(B2:B100,A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).

4
Add a status criterion if needed

If status values are in C2:C100, add C2:C100,"Complete" to either formula before its closing parenthesis to include only completed records.

Use COUNTIFS and SUMIFS with a Date Range
Adjust the ranges: Replace the example ranges with your actual columns and rows. The timestamp, amount, and additional criteria ranges must cover corresponding rows.
Calculate daily totals in WPS

Count and Sum Timestamped Records in WPS Spreadsheets

Use COUNTIFS and SUMIFS in WPS Spreadsheets to calculate daily counts and totals without requiring timestamp times to match.

  1. 1. Open your workbook: Open WPS Spreadsheets and select File > Open to load your Excel workbook.
  2. 2. Set the date: Enter the date to analyze in E2. For this example, keep timestamps in A2:A100 and amounts in B2:B100.
  3. 3. Count the records: Select an empty cell and enter =COUNTIFS(A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).
  4. 4. Calculate the total: Select another empty cell and enter =SUMIFS(B2:B100,A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).
Count and sum records using a selected dateOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet formulas and controlsWork with a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't an exact date match count all my timestamps?

Excel stores time as a fractional part of a date value, so a timestamp with a time is not equal to the same date at midnight. Use criteria >=INT(E2) and <INT(E2)+1 to include the full day.

Can I count only records with a particular status?

Yes. If statuses are in C2:C100, add C2:C100,"Complete" as another criteria pair inside the COUNTIFS formula. Replace Complete with the status you need.

Why does my formula return zero when records are visible?

Check that E2 and the values in A2:A100 are real Excel dates rather than text. Also confirm that the formula ranges include the rows containing your records.

How can I count distinct entries for one day?

In an Excel version with FILTER and UNIQUE, filter the value column using the selected day's timestamp bounds, apply UNIQUE, and count the resulting rows with ROWS. Exclude blank values if they should not be counted.