Count and Sum Excel Records by Date While Ignoring Time
Question details
Calculate daily record counts and totals from Excel timestamps without matching the time portion.

- 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.
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.
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.
Type the date you want to analyze in cell E2.
Select an empty cell and enter =COUNTIFS(A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).
Select another empty cell and enter =SUMIFS(B2:B100,A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).
If status values are in C2:C100, add C2:C100,"Complete" to either formula before its closing parenthesis to include only completed records.

Count Unique Values for a Selected Date
Use this method to count distinct, nonblank values associated with records on the selected day.
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. Open your workbook: Open WPS Spreadsheets and select File > Open to load your Excel workbook.
- 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. Count the records: Select an empty cell and enter =COUNTIFS(A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).
- 4. Calculate the total: Select another empty cell and enter =SUMIFS(B2:B100,A2:A100,">="&INT(E2),A2:A100,"<"&INT(E2)+1).

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.




