|
Home > Pivot > Layout > Grouping Pivot Table Grouping Error Cannot Group That Selection
|

In this short video, I show two examples for the "Cannot group that selection" pivot table error message. There are details for all 3 common causes below the video.
If you try to group a date or number field, you may see an Excel error message, with a yellow warning label, that says, "Cannot group that selection."

There are 3 common causes for this pivot table grouping error message:
See the details on these causes, and steps to fix them, in the sections below.
When you created the pivot table, did you check the box to "Add this data to the Data Model"?
If so, you won't be able to group any pivot items.

When the Data Model option is checked:
In the following sections, there are two workarounds to fix this problem:
-- Fix A1: Create a normal pivot table (not in the Data Model)
-- Fix A2: Add a Group column in the souce data
If you need to group the data, create another pivot table, based on the same data.
When setting up the new pivot table, do NOT check the "Add this data to the Data Model" option

Another workaround is to add a new "Group" column in the source data.
In the Group column:
Then, refresh the pivot table, and add the "Group" field to the pivot table layout.
In the screen shot below, an XLOOKUP formula finds the Category name in the lookup table (tblCat), and returns the Group name.


In a normal pivot table, you might get an unexpected error when you try to group dates or numbers.
For example, in the screen shot below, I right-clicked a date cell, then clicked Group. The error message appeared: "Cannot group that selection."

In the source data, there are 3 dates that are left-aligned, unlike the other numbers. When I selected 5 date cells, the status bar showed that:
That's why Excel can't group the dates in the pivot table.

To fix the problem with blanks or text:
Another possible cause for the grouping error is a grouped field left over from the previous time that you grouped the data.
To fix the problem, if previous grouping is the cause, follow these steps:
Be sure to get my monthly newsletter, with quick Excel tips, links, news, and a bit of fun. Just add your email, then click Sign Up.
Pivot Grouping: Pivot table grouping examples. Group Excel pivot table dates, numbers, or text.
Old Items: If pivot table drop downs show outdated items, see the steps to clear old items in Pivot Table, and prevent them from reappearing.
Calculated Item: Videos and written steps show how to create a calculated item in an Excel pivot table. See the features, restrictions, warnings.
Last updated: November 14, 2026 3:20 PM