You convert your .xls file to .xlsx — or just save it in the new format — and suddenly your PivotTable looks completely different. Date fields that used to show individual dates are now collapsed into Year, Quarter, and Month hierarchies that you never created. Nothing changed in the data. The pivot just reorganized itself on its own.
This is one of the more disorienting post-conversion surprises, especially when the affected PivotTable feeds a report or dashboard that other people rely on. Here's what's actually happening and how to get back to normal.
Microsoft introduced automatic date grouping in PivotTables with Excel 2016. When you add a date field to the row or column area of a PivotTable, Excel automatically groups it into a Year → Quarter → Month hierarchy instead of showing individual date values.
The critical detail: this setting lives in Excel Options on your machine, not in the file itself. Your .xls file wasn't subject to this behavior because:
When you convert to .xlsx and reopen, the PivotTable refreshes under the current Excel settings — and if "Automatically group dates in PivotTables" is enabled (which it is by default), Excel applies it. The conversion didn't corrupt anything; it just exposed a default setting you'd never interacted with before.
This is the simplest fix and the right answer for a single user:
This applies to all new PivotTables going forward. It does not ungroup PivotTables that have already been grouped — you'll need to do that separately (see below).
If you're rolling this change out to multiple machines via GPO or Intune, the setting lives here:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options
DWORD: AutomaticallyGroupDates
Value: 0 (disabled) or 1 (enabled)
Create or set this DWORD to 0 and deploy via Group Policy Preferences or a registry-write script through Intune. This works for Excel 2016, 2019, 2021, and Microsoft 365.
LegacyLeaps scans your .xls files and shows exactly what PivotTables, macros, and formatting need attention before you convert — free.
Try the Free ScanTurning off the setting prevents future auto-grouping but doesn't fix PivotTables that Excel has already grouped. Here's how to restore them.
If "Ungroup" is grayed out, the grouping may have been applied to the field in the field list rather than as a manual group. Try removing the field entirely from the pivot and re-adding it after you've disabled the auto-grouping setting.
If you have several PivotTables affected across one workbook, this macro will ungroup all date fields:
Sub UngroupAllPivotDates()
Dim ws As Worksheet
Dim pt As PivotTable
Dim pf As PivotField
For Each ws In ThisWorkbook.Worksheets
For Each pt In ws.PivotTables
For Each pf In pt.PivotFields
If pf.IsDate Then
On Error Resume Next
pf.ClearAllFilters
pf.Ungroup
On Error GoTo 0
End If
Next pf
Next pt
Next ws
MsgBox "Done. Refresh PivotTables to see changes."
End Sub
Run this with the auto-grouping setting already disabled so it doesn't re-apply on refresh. After running, press Alt+F5 or right-click each PivotTable and select Refresh.
This is an important distinction. The .xls file wasn't immune to auto-grouping because of something special about the .xls format. It was immune because it was running under legacy behavior rules. Once you convert to .xlsx, the file is subject to current Excel behavior — including application-level defaults that may have changed since your original file was created.
The same logic applies to a handful of other Excel behaviors that shift after conversion:
This is why a proper pre-conversion audit matters. LegacyLeaps's free scan identifies which features in your .xls files are likely to behave differently after conversion, before you commit to the change.
The auto-grouping setting is per-machine, not per-file. If you distribute the converted .xlsx to users whose Excel still has auto-grouping enabled, they'll see the grouping behavior even if you fixed it on your own machine.
For distributed workbooks, the cleanest approach is:
| Symptom | Cause | Fix |
|---|---|---|
| Dates grouped by Year/Quarter after .xls→.xlsx | Excel 2016+ auto-grouping enabled by default | File → Options → Data → uncheck "Automatically group dates" |
| Extra "Years", "Quarters" fields in pivot | Auto-grouping created new hierarchy fields | Remove extra fields, then Ungroup via right-click |
| Grouping returns after PivotTable refresh | Setting still enabled on this machine | Disable setting first, then ungroup |
| Other users still see grouping | Setting is per-machine, not per-file | Deploy registry fix via GPO/Intune org-wide |
Download LegacyLeaps and scan your files for free. See exactly what PivotTables, macros, and formulas need attention before you spend a penny.
Download Free ScannerPractical fixes for legacy Excel and Access problems. No spam.