Pivot Table Issues

How to Summarize Excel Data by Date and Ignore Time Values

Anum MushtaqAnum Mushtaq Nov 4, 2026 872 views

Question details

The user needs to summarize a dataset containing date-and-time values by the calendar date only, completely ignoring the time values to calculate accurate daily totals.

How to Summarize Excel Data by Date and Ignore Time Values
Product
Excel
Device & OS
not provided
Scenario
Grouping a continuous date-and-time series (such as hourly energy tracking or watt-hours) into pure daily buckets to create a summarized PivotTable report.
Observed behavior
Values like '12/24/2021 23:00' and '12/25/2021 00:00' need to be recognized as distinct calendar dates and summarized individually, rather than being treated as unique date-time timestamps.
Before you start

Ensure that your source date-and-time data is stored as valid numeric Excel date values rather than plain text, so that mathematical functions and PivotTables can interpret them correctly.

Solution 1Recommended

Use the INT Function and a PivotTable

This is the most straightforward and recommended method to strip time from date-time values, allowing perfect daily grouping in PivotTables.

In Excel, dates and times are stored as serial numbers where the integer portion represents the date and the decimal portion represents the time. Using the INT function removes the decimal, leaving only the pure calendar date.

1
Create a Helper Column

Insert a new column next to your date-and-time data and name it something like 'Calendar Date'.

2
Apply the INT Function

In the first cell of the new column, type the formula =INT(A2) (assuming A2 contains your first date-time value), and press Enter. Drag the fill handle down to apply the formula to the rest of your dataset.

3
Format as Date

Select the entire helper column, go to the Home tab, click the Number Format dropdown, and choose 'Short Date'.

4
Build the PivotTable

Select your updated dataset, go to Insert > PivotTable. Drag your new 'Calendar Date' column into the Rows area, and the numerical values (like watt-hours) into the Values area to summarize by date.

Use the INT Function and a PivotTable
Pro Tip: You can add a timeline slicer to your PivotTable to easily filter your new daily summaries by specific months, quarters, or date ranges.
WPS Spreadsheet Solution

Easily Summarize Data by Date with WPS Spreadsheet

WPS Spreadsheet provides powerful PivotTable features and complete compatibility with Excel functions like INT, allowing you to quickly extract dates and summarize massive datasets without complex configurations.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your .xlsx dataset containing the date-and-time values.
  2. 2. Add the INT formula: Create a new column and type =INT(A2) to extract the date part, then format the column as 'Short Date'.
  3. 3. Insert a PivotTable: Go to the Insert tab, select PivotTable, and confirm your data range.
  4. 4. Summarize the data: Drag the new date column to the Rows area and your measurement values to the Values area to see the daily summary.
Fully compatible with Microsoft Excel file formats (.xlsx) and formulasRobust PivotTable tool for grouping dates and analyzing data effortlesslyClean, intuitive user interface for faster data processingLightweight software that runs smoothly on almost any computer
microsoft office alternative - wps office

Frequently Asked Questions

Why does the INT function return a 5-digit number instead of a date?

Spreadsheet software stores dates as sequential serial numbers starting from January 1, 1900. The 5-digit number is the correct underlying date value. To display it as a date, simply select the cells, go to the Home tab, and change the number format from 'General' to 'Short Date'.

Can I group dates directly in a PivotTable without using a helper column?

Yes, if your data is strictly dates. You can right-click a date field in the PivotTable, choose 'Group', and select 'Days'. However, if your source data contains varying timestamps, grouping directly can sometimes yield inaccurate separate line items for different times on the same day. Using the INT helper column guarantees pure daily buckets.

How do I extract just the time values into a separate column?

Since dates are integers and times are decimals, you can subtract the pure date from your original date-and-time value. Use the formula =A2-INT(A2). Then, select the cell and apply a 'Time' format from the Home tab to display only the hours and minutes.