If Excel will not group dates in a PivotTable, first check the source date column for blanks, errors, or dates stored as text; every value in the field needs to be a usable date. Correct the source values, refresh the PivotTable, then right-click a date in the PivotTable and choose Group to select Months, Years, or another interval.
How date grouping works
A PivotTable can group genuine Excel dates into useful reporting periods without changing the source records. For example, individual dates such as January 3, January 18, and February 2 can be summarized by month, quarter, or year. The underlying records remain at their original detail; grouping changes how the PivotTable organizes and summarizes them.
Excel dates are stored as serial numbers and displayed according to the cell’s number format. A cell that displays 1/3/2026 might contain a true date value, while a cell displaying the same characters might contain text. The display alone does not prove which it is. Text dates commonly appear after copying data from a website, receiving a CSV file, or importing a report with a different regional date convention.
When grouping succeeds, Excel may create additional fields such as Years or Quarters in the PivotTable field list. These are grouping fields, not new columns added to the original data. Grouping also does not convert text into dates: the source values must be valid first.
Check the source date column
Start with the data used by the PivotTable, not just the date labels currently visible in the report. Look for an empty cell, an error, a text label such as “Unknown,” or a date that was imported in a format Excel did not recognize. One stray value can prevent grouping for the entire field.
- Blanks: A blank date cell in the source is a frequent cause of the “Cannot group that selection” message. Filter the source date column for blanks and decide whether to correct or remove those records.
- Errors: Values such as #VALUE! or #N/A in the date field are not groupable dates. Fix the cause or handle the records separately.
- Text mixed with dates: A column can look uniform while containing a mixture of date serials and text strings. Imported headers or labels repeated inside the data range can also be a problem.
- Invalid dates: A value such as February 30 is not a valid calendar date. Check how the source system represents dates, especially when day and month order is ambiguous.
To test values, with source dates in A2:A1000, enter =ISNUMBER(A2) in B2 and fill it down. TRUE indicates that the referenced value is numeric, as a valid Excel date normally is; FALSE flags text, blanks, and other nonnumeric entries for closer inspection. The test does not by itself prove that every numeric value is a sensible date, so inspect suspicious records too.
Convert text dates into real dates
Changing a cell’s number format is not a conversion. If a text value remains text, applying a date format may leave it unchanged or produce an unexpected display. Choose a conversion method that matches the source data and its date order.
For consistently structured text dates, select the source column and use Data > Text to Columns. In the wizard, choose Delimited and continue through the steps without selecting a delimiter that would split the date; on the final step, set the column data format to Date and select the appropriate order, such as YMD or MDY, before finishing. Check a sample of the converted values afterward. This is especially important for dates such as 04/05/2026, which can mean April 5 or May 4 depending on the source convention.
If the data comes from a CSV or another external source, Power Query can be a better repeatable fix. In the query editor, select the date column and set its data type to Date. When day and month order depends on a locale, use the data-type conversion option that specifies a locale, then choose the locale matching the source. Load the corrected results and refresh or rebuild the PivotTable from that output.
Do not replace missing dates with an arbitrary date merely to make grouping work. If a record has no known date, decide whether it belongs in a separate “undated” category, should be excluded from a date-based report, or needs correction at the source. A made-up date can distort month and year totals.
Group dates in Excel for Microsoft 365 on Windows
After repairing the source, update the PivotTable and try grouping again. These steps apply to Excel for Microsoft 365 on Windows:
- Click inside the PivotTable and choose PivotTable Analyze > Refresh, or right-click inside it and choose Refresh.
- Confirm that the date field is in the Rows or Columns area. Grouping is performed on items displayed in the PivotTable, not on a date field used only as a report filter.
- Right-click one of the displayed date items and choose Group. Depending on the selected cell and Excel layout, the grouping command may also be available from PivotTable Analyze > Group > Group Selection.
- In the Grouping dialog, select the intervals you need. For a monthly report across multiple years, select both Months and Years; selecting Months alone can combine January from different years.
- Choose OK, then review the new group labels and the totals. If the dialog does not appear or Group is unavailable, continue with the checks below.
The Grouping dialog can offer seconds, minutes, hours, days, months, quarters, and years, depending on the field and PivotTable. For a daily field, Excel may show a number of days interval and start and end dates. Those settings let you create fixed-length periods, but they are not the same as calendar months: a 30-day group does not always align with a month.
Refresh the right data and range
Refreshing updates the PivotTable from its current source; it does not repair text dates, blanks, or errors. If you fixed the source but still see old values, refresh again and confirm that the PivotTable points to the corrected range or query. A PivotTable built from a fixed cell range may not include rows appended below that range.
For a regular worksheet dataset, converting the source range to an Excel Table can help new rows become part of the source automatically. Select a cell in the data and choose Insert > Table, confirming whether the table has headers. Then base the PivotTable on that table. If the PivotTable already exists, inspect its source through PivotTable Analyze > Change Data Source; the exact options can differ for connections and Data Model PivotTables.
Also check that the date field you repaired is the same field used in the PivotTable. Workbooks can contain similarly named columns, and a report may be built from a separate query or an older range. If a refresh brings back the problem, correct the query or upstream source rather than only editing a temporary output copy.
When Group is missing or grouping still fails
If there are no visible blanks or text values, check how the PivotTable was created. PivotTables connected to an OLAP source or built using the Data Model can have different grouping capabilities from a standard PivotTable based directly on a worksheet range. In these cases, grouping may be disabled or unavailable. A common solution is to create calendar attributes in the source or model—such as Year, Quarter, and Month—and use those fields in the PivotTable.
For a standard PivotTable, verify that the field contains actual dates throughout the source range, including rows that are currently filtered out. A filter can hide the offending record without removing it from the source. Clear source filters or inspect the full column. Also check for repeated header rows inside the data, merged cells, and inconsistent values introduced during import.
If the field was grouped before, or the PivotTable has been rearranged, use PivotTable Analyze > Ungroup when available, refresh, and try again. If the command is disabled, select an actual date item rather than a heading or subtotal. As a diagnostic, create a small new PivotTable from a cleaned copy of the source; success there can help distinguish a source-data issue from a limitation of the original connection or report.
Months, years, quarters, and dates: choosing a useful layout
Choose grouping based on the question the report needs to answer. Months are useful for seasonal patterns, years for long-term comparisons, and quarters for standard business reporting. Combining Years and Months preserves chronology across year boundaries; putting only Months in the group can make the same month from different years appear together.
For example, suppose a sales source has transactions dated December 2025 and January 2026. Grouping by Months and Years keeps those periods distinct and shows the year context. Grouping by Months alone can place all December entries together and all January entries together, which may be misleading if the report covers multiple years.
Grouping by Days with an interval such as seven can create consecutive blocks of days, but those blocks may not match calendar weeks or a company’s fiscal calendar. If a report must follow a fiscal year, 4-4-5 calendar, named business week, or custom period, add suitable calendar columns to the source or use a calendar table in the Data Model. Do not assume that selecting Quarters automatically applies a company-specific fiscal calendar.
Excel for Mac and Excel for the web
The article’s ribbon paths describe Excel for Microsoft 365 on Windows. In Excel for Mac, the same basic approach applies: inspect and correct the source, refresh the PivotTable, then use the PivotTable context menu or the PivotTable ribbon to group selected date items when the command is available. Menu placement and wording can vary by release. Control-click or a two-finger click can open a context menu when a mouse right-click is not available.
Excel for the web can open and work with PivotTables, but available creation and grouping commands may differ from desktop Excel and can depend on the workbook’s source. If Group is missing in the browser, open the workbook in the desktop app and check whether the PivotTable uses a connection or the Data Model. Changes made in the desktop app can then be saved back to the workbook.
Frequently Asked Questions
Why does Excel say “Cannot group that selection”?
The source field usually contains at least one blank, error, text value, or invalid date, or the PivotTable source does not support ordinary grouping. Inspect the complete source column, including filtered-out rows, repair the values, refresh, and try again.
Why are my dates displayed as numbers?
Excel stores dates as serial numbers, so a date cell can show a number if its format is General or Number. Select the source cells and apply a date format from Home > Number. If the cell contains text rather than a serial date, formatting alone will not convert it.
Can I group by month without combining the same month from different years?
Yes. In the Grouping dialog, select both Months and Years. This gives the report year context, so January 2025 and January 2026 remain separate periods.
Will refreshing fix dates stored as text?
No. Refresh reads the source again; it does not turn text into date values. Convert the source column to real dates first, then refresh the PivotTable.
Why can’t I group dates in a Data Model PivotTable?
Grouping options can be restricted for PivotTables connected to the Data Model or an OLAP source. Add date attributes such as Year, Month, or Quarter to the model or source calendar table, then use those fields in the report.
Does changing the date format make text dates groupable?
No. A number format changes how a value is displayed, not what type of value it is. Convert text dates using an appropriate import or conversion method, verify the results, and refresh the PivotTable.
Related
- Excel Not Tabbing to Next Cell? Fixes That Work
- Media Excel Shortcuts for Images, Links, and Objects
- Average Excel File Size: What to Expect and Why It Varies
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Online Waterfall Chart: How to Set a Bar as TotalIn Excel for the web, select the individual waterfall column and check its right-click menu for Set as…
- Excel Gantt Chart Schedule: Create and Track ProjectsAn Excel Gantt chart schedule is a task list paired with a date-based timeline, where colored cells show…
- Excel 100% Stacked Lines in a Combo ChartYes, you can combine percentage lines with another chart type in Excel, but the most dependable method is…
- Excel Pie Chart: Rotate Slices and Set the First AngleTo rotate an Excel pie chart, select the chart, right-click a slice, choose Format Data Series, then change…
- Excel Gantt Chart Formula: Build a Timeline BarThe core Excel Gantt chart formula is =AND(H$1>=$B2,H$1<=$C2). Apply it as a conditional-formatting rule to the timeline grid:…
- How to Left Align a Pie Chart in ExcelTo left align a pie chart in Excel, select the chart’s outer border and drag it until its…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.