Excel refuses to group a date field when the column contains blanks, text, error values, or dates stored as text, or when the range includes merged cells or a pivot table built from a source that has no valid date data. The fix is to clean the source column so every cell holds a real date (or is empty), refresh the pivot table, and then group again. The steps below walk through finding the bad cells, converting them, and rebuilding the grouping.

What You'll Need

  • Excel on Windows or Mac (the steps below are written for the desktop app; the web version has limited pivot table grouping).
  • The workbook containing the pivot table or the data you want to group.
  • Permission to edit the source data, not just the pivot table.
  • A backup copy of the workbook before you change any values.

Step-by-Step

  1. Identify which field is failing. Click inside the pivot table, open the PivotTable Fields pane, and note the field you dragged into Rows or Columns. If you are grouping directly on a range (not a pivot table), select the date column and confirm the column header is a single cell, not a merged cell.
  2. Check the source column for blanks. Go to the source sheet, select the date column, and use Home > Find & Select > Go To Special > Blanks. If blanks are found, either fill them with a valid date or delete those rows before refreshing. Grouping fails when the field contains empty cells.
  3. Check for text that looks like a date. Dates imported from CSV files or copied from other systems often arrive as text. Select the column, then look at the alignment: text dates usually sit left-aligned while real dates sit right-aligned by default. You can also use a helper formula such as =ISNUMBER(A2) next to the column; a result of FALSE means the cell is text, not a date.
  4. Convert text dates to real dates. Select the column, then use Data > Text to Columns, click Next twice, choose Date in the Column Data Format list, pick the order that matches your data (for example MDY), and click Finish. Alternatively, use Data > Data Tools > Text to Columns with the same settings. After conversion, reapply a date format with Home > Number Format > Short Date.
  5. Remove error values. Scan the column for #N/A, #VALUE!, or #DIV/0!. Filter the column for errors (Data > Filter, then choose the error option in the filter menu), correct or delete those rows, then clear the filter.
  6. Check for merged cells. Select the source range and use Home > Merge & Center to see whether the button is active. If merged cells exist in the date column, unmerge them (Home > Merge & Center again) and fill each row with the correct date.
  7. Refresh the pivot table. Right-click the pivot table and choose Refresh. If the source range changed size, use PivotTable Analyze > Change Data Source to reselect the full range first.
  8. Group the dates. Right-click any date value in the pivot table row or column labels, choose Group, then select Months, Quarters, or Years as needed. If Group is greyed out, the field still contains invalid values, so repeat steps 2 through 6.
  9. If you are grouping a plain range instead of a pivot table, select the date cells, then use Data > Group (available in some versions under the Outline group) or insert a pivot table first, because direct grouping of a normal range is limited to outline grouping, not date grouping.

Common Mistakes

  • Formatting text as a date instead of converting it. Changing the number format does not turn text into a date. Use Text to Columns or a formula such as =DATEVALUE(A2) and then paste the results back as values.
  • Leaving one blank row in the source. A single empty cell in the date column is enough to make Excel refuse to group the whole field.
  • Grouping a calculated field. Calculated fields cannot be grouped the same way as source date fields. Add the date as a regular field instead.
  • Forgetting to refresh after cleaning. The pivot table keeps a cached copy of the old data until you refresh it.
  • Using merged header cells. A merged header row can cause Excel to misread the range and treat the date column as text.

Tips

  • Keep a helper column with =ISNUMBER(A2) while cleaning; delete it once grouping works.
  • Import CSV files with Data > From Text/CSV and set the date column type to Date during import, which avoids the text-date problem entirely.
  • Use a formatted Excel Table (Insert > Table) as the pivot source so new rows are included on refresh.
  • If your dates include times, group by Days first, then add Months or Years in the same Group dialog.
  • Save a copy before bulk-converting a column, because Text to Columns overwrites the original values.

Troubleshooting

If the Group option is still greyed out after cleaning, check whether the pivot table has the date field in the Values area instead of Rows or Columns; values cannot be grouped as dates. Move the field to Rows and try again.

If Excel shows a message that the selection cannot be grouped, select only the date cells inside the pivot table, not the whole column, then right-click and choose Group. Selecting the entire column or including the header row can trigger the error.

If the source data comes from Power Query, open the query editor, set the column type to Date, and load the query again. Grouping works only after the query output is typed as Date.

If the workbook was created in an older version, save it as .xlsx and reopen it; some legacy formats limit pivot table features.

If none of the above works, rebuild the pivot table from a clean copy of the source data on a new sheet. This removes hidden formatting and stale cache issues.

Frequently Asked Questions

Why does Excel say it cannot group that selection?

Because the date field contains blanks, text, errors, or merged cells, or the selected range includes non-date values. Clean the source column and refresh the pivot table.

Can I group dates in Excel for the web?

Grouping is limited in the web version. Use the desktop app for full date grouping options.

How do I convert text dates quickly?

Use Data > Text to Columns with the Date format, or a formula such as =DATEVALUE(A2) copied down and pasted back as values.

Does grouping work with blank cells?

No. Remove or fill blanks in the date column before grouping.

Why is Group greyed out after I refreshed?

The field is probably in the Values area, or the source still contains invalid dates. Move it to Rows and recheck the column.

Will grouping change my source data?

No. Grouping only affects how the pivot table displays the dates; the source cells stay unchanged.