How to Group Dates in an Excel for the Web Pivot Table
Question details
The user needs to group dates in a Pivot Table by week, month, quarter, or year using Excel for the web.

- Product
- Excel for the Web
- Device & OS
- not provided
- Scenario
- Organizing and analyzing time-based data within an online Pivot Table.
- Observed behavior
- Excel for the web lacks the native automatic date-grouping feature that is available in the desktop version of Excel.
Verify if you have the desktop version of Excel installed, as opening the file locally provides the easiest way to access native grouping features.
Use Helper Columns in Your Source Data
Since Excel for the Web does not support native right-click grouping, adding formula-driven helper columns to your source data is the most reliable workaround.
By extracting the year, month, quarter, or week directly in your dataset, you can easily use these new columns as standard fields in your online Pivot Table.
Navigate to your source data table and insert a new column next to your date data. Name it appropriately, for example, 'Month' or 'Year'.
Use Excel functions to extract the date component. For months, use =TEXT(A2, "mmmm"). For years, use =YEAR(A2). For quarters, use ="Q"&ROUNDUP(MONTH(A2)/3,0). Drag the formula down to fill the column.
Go back to your Pivot Table sheet, click on the Pivot Table, navigate to the PivotTable tab on the ribbon, and click 'Refresh' to update the field list.
From the updated PivotTable Fields pane, drag your new 'Month' or 'Year' helper columns into the Rows or Columns area to organize your data.

Group Dates Using the Desktop App
If you have access to the Excel desktop application, you can perform the grouping offline. The groupings will be preserved when you upload and view the file online.
Experience Native Pivot Table Features with WPS Office
Skip the tedious workarounds and helper columns. WPS Spreadsheet is a powerful, lightweight alternative to Microsoft Office that offers full native date-grouping capabilities for Pivot Tables directly out of the box.
- 1. Open Your Excel File: Launch WPS Spreadsheet and open your existing .xlsx workbook.
- 2. Access the Pivot Table: Select your data and insert a Pivot Table, dragging your date field into the Rows section.
- 3. Group Dates Instantly: Right-click any date in the Pivot Table, select 'Group', and simply check 'Months', 'Quarters', or 'Years' to group your data instantly.

Frequently Asked Questions
Why can't I group dates directly in Excel for the Web?
Excel for the Web is designed as a streamlined version of the desktop application. Advanced Pivot Table functionalities, such as the automatic date grouping feature, are currently only supported in the full desktop version of Excel.
Will date groups made in the desktop app still work when others view the file online?
Yes. If you group dates in a Pivot Table using the Excel desktop app and save the file to a cloud location like OneDrive or SharePoint, any user opening the file in Excel for the Web will see the dates grouped properly.
How do I group by weeks using helper columns?
You can group data by weeks by adding a helper column with the formula =ISOWEEKNUM(A2) to extract the week number, or =A2-WEEKDAY(A2,2)+1 to return the starting Monday of the week. Drag this new field into your online Pivot Table.




