Excel Pivot Table Date Grouping Not Working? Fix It
In this article
You can't group dates in a pivot table because Excel is treating the date column as text, the field contains blanks or errors, the source data includes empty rows, or you're using a version or file format that doesn't support the Group feature. The fix is almost always to clean the source data so every date is a real date value, then refresh and group again. Below is the exact order to check things, plus what to do when the Group option is greyed out or missing.
What You'll Need
- Your source data in a single worksheet, with one header row and no blank rows or columns inside the data range.
- A date column where every cell is a genuine Excel date (right-aligned by default, not left-aligned text).
- Excel for Windows or Mac (the Group Dates feature is not available in Excel for the web or in most mobile apps).
- A pivot table built from that data, with the date field placed in the Rows area.
Step-by-Step
- Confirm the date field is in the Rows area. Click any date inside the pivot table. The PivotTable Fields pane should show the date field in the Rows box. Grouping only works on row or column fields, not on values or filters.
- Check that Excel sees real dates. Go back to the source column. Real dates sit on the right edge of the cell by default; text sits on the left. If they're left-aligned, select the column, then use Data > Text to Columns, click Finish, and format the column as Date. Alternatively, use a helper column with a formula like =DATEVALUE(A2) and copy the results back as values.
- Remove blank cells, errors and text in the date column. A single blank, #N/A, or stray note like "TBC" in the date column can stop grouping. Filter the column for blanks and errors and fill or delete them. If you can't delete them, consider filtering the pivot table source to exclude them, or build the pivot from a clean table.
- Make sure the source range has no empty rows or columns. Select the data and press Ctrl+T (Cmd+T on Mac) to convert it to an Excel Table. Tables expand automatically and avoid the classic problem where new rows fall outside the pivot's source range.
- Refresh the pivot table. Right-click the pivot and choose Refresh, or use PivotTable Analyze > Refresh. If you changed the source range, use Change Data Source first so the pivot points at the full, clean range.
- Group the dates. Right-click any date value in the pivot and choose Group. In the Grouping dialog, select Months, Quarters, or Years as needed. If you only see a single "Starting at / Ending at" option, your version may not support automatic date grouping, so check step 7.
- Check your Excel version and file format. Date grouping in pivot tables is not available in Excel for the web, in Excel Mobile, or in some older versions. It also requires the workbook to be saved in a modern format (.xlsx or .xlsm), not the legacy .xls format. If you're in Excel for the web, open the file in the desktop app to group dates.
- Rebuild the pivot if needed. If the pivot was created from a range that has since been restructured, insert a new pivot table from the clean table. This clears any stale cache that can keep the old text-based field.
Common Mistakes
- Assuming imported dates are real dates. Data copied from CSV files, web pages, or other systems often arrives as text. Excel won't group text that looks like a date, even if it displays "01/15/2024".
- Leaving one blank in the date column. A single blank cell is enough to grey out the Group option or throw an error.
- Grouping a field that isn't in Rows or Columns. If the date is in Values or Filters, the Group command won't behave as expected.
- Using a fixed range instead of a table. A pivot built from A1:D100 won't include row 101 when you add new data, which leads to "missing" dates and confusing group results.
- Forgetting to refresh. After fixing the source data, the pivot still holds the old cached values until you refresh it.
- Trying to group in Excel for the web. The Group Dates option is not available there; use the desktop app.
Tips
- Format the source date column as Date before building the pivot. It makes text-versus-date problems obvious at a glance.
- Use a Table (Ctrl+T) as the pivot source so new rows are included automatically after a refresh.
- If you need custom periods (fiscal quarters, 4-4-5 weeks), add helper columns to the source table with formulas, then use those fields in the pivot instead of relying on automatic grouping.
- Keep one header row only. Merged headers or two-row headers confuse the pivot's field detection.
- When sharing the workbook, note that grouped dates stay grouped only while the pivot cache is intact; rebuilding the pivot resets grouping.
Troubleshooting
The Group option is greyed out. This almost always means the date field contains text, blanks, or errors, or the field isn't in Rows/Columns. Clean the column, refresh, and try again. If it's still greyed out, confirm you're in the desktop app and the file is .xlsx or .xlsm.
Excel shows "Cannot group that selection". Check for blank cells, error values, or a mix of dates and text in the selected field. Also confirm you selected a single date cell in the pivot, not multiple cells across different fields.
Dates group into one lump or show as text. The source column is text. Convert it with Text to Columns or DATEVALUE, refresh the pivot, and regroup.
Grouping worked, then broke after adding data. The new rows likely fell outside the pivot's source range. Convert the source to a Table and refresh, or use Change Data Source to expand the range.
You're on Excel for the web or mobile. Date grouping isn't supported there. Open the workbook in Excel for Windows or Mac, group the dates, save, and reopen it in the web or mobile app to view the grouped pivot.
Frequently Asked Questions
Why is the Group button greyed out on my date field?
Usually because the field contains text, blanks, or errors, or because it isn't placed in the Rows or Columns area. Clean the source column, refresh the pivot, and try again.
Can I group dates in Excel for the web?
No. Automatic date grouping in pivot tables is a desktop feature. Group the dates in Excel for Windows or Mac, then view the result in the web app.
Why does Excel say "Cannot group that selection"?
That message appears when the selected field has blanks, error values, or mixed data types, or when you've selected cells from more than one field. Select a single date cell and check the source column.
How do I fix dates that imported as text?
Select the column, use Data > Text to Columns and click Finish, then format the column as Date. Or add a helper column with =DATEVALUE(cell) and paste the results back as values.
Do grouped dates stay grouped after I refresh?
Yes, as long as the pivot cache and source range stay intact. If you rebuild the pivot or change the source significantly, you may need to group again.
Can I group by fiscal quarters?
Not directly with the built-in grouping. Add a helper column to the source table that calculates the fiscal quarter, then use that field in the pivot.