Navigated to blog › excel-too-many-cell-formats
Back to Blog
excel-troubleshooting

Excel Says 'Too Many Different Cell Formats' — Clean It in 2 Minutes

March 23, 2026
8
By SplitForge Team

Quick Answer

Excel stores up to 64,000 unique cell format combinations per workbook. A "format" is the full combination of font, size, color, border, fill, number format, and alignment. When that limit is reached, Excel cannot apply any new formatting — not even bold text on an empty cell.

The limit fills silently through copy-paste. Every time you paste cells from another workbook, Excel imports that workbook's format definitions — even if you paste only values. Over months of collaboration across multiple teams, workbooks accumulate thousands of format definitions that are never actually used.

The fix takes 2 minutes with the Inquire add-in and removes orphaned format definitions without touching any visible formatting in the file.


Fast Fix (2 Minutes)

Clean excess formats with Excel's built-in Inquire add-in:

  1. Enable Inquire — File → Options → Add-ins → Manage: COM Add-ins → check Inquire → OK
  2. Open the Inquire tab in the Excel ribbon (appears after enabling)
  3. Click "Clean Excess Cell Formatting"
  4. Apply to: All Sheets → click OK
  5. Save the file — Ctrl+S

Done. The format count drops immediately. Save is required — the cleanup only persists when saved.


TL;DR: Excel's 64,000 unique cell format limit fills through copy-paste from other workbooks. The Inquire add-in's "Clean Excess Cell Formatting" removes orphaned format definitions in under 2 minutes without changing visible formatting. If Inquire is unavailable, a VBA macro achieves the same result.


Also appears as: Excel won't let me change font color, Excel formatting greyed out, Excel can't bold text, Excel "too many formats" error, formatting not applying in Excel

Part of the SplitForge Excel Failure System: You're here → Excel Too Many Cell Formats File size from format bloat → Reduce Excel File Size Excel running slow → Excel Running Slow on Large Files All Excel limits → Excel Limits Complete Reference


Each scenario was tested using Microsoft 365 Excel (64-bit), Windows 11, March 2026.


Format Bloat Warning Signs

Catch this before it hits the hard limit:

Warning signLikely causeQuick check
File size jumped 5–10× with no new dataFormat accumulation from pasteCompare file size to a data-only copy
Can't apply bold or color to any cellLimit already hitTry formatting one empty cell — if it errors, you're there
Pastes from external files are slowStyle importing during pasteMonitor file size before and after each paste
Save takes minutes on a small datasetOrphaned format definitions bloating styles.xmlRun Inquire → Clean Excess Formats
File over 50MB with under 100K rowsFormat bloat is the primary culpritData rarely justifies this size

VBA format count check — get the exact number:

Sub CountCellFormats()
    ' Counts unique cell format definitions in the workbook
    ' Open XML approach — most reliable method
    Dim count As Long
    count = ActiveWorkbook.Styles.Count
    MsgBox "Approximate format count: " & count & " of 64,000 limit" & vbCrLf & _
           "(Styles.Count is a proxy — actual xf count in styles.xml may differ)"
End Sub

For the exact count, inspect styles.xml directly (see "How to Check Your Current Format Count" below). The VBA Styles.Count gives a reasonable proxy in seconds.


What the Error Looks Like

❌ FORMAT LIMIT REACHED:

Error message: "Too many different cell formats."

When it appears:
- Trying to apply any formatting (bold, color, border, fill)
- Importing data from another workbook
- Saving — sometimes triggers the check

What still works:
- Editing cell values
- Running formulas
- Sorting and filtering

What stops working:
- Any formatting change on any cell in the workbook
- Conditional formatting rules (cannot add new ones)
- Table style changes
HOW THE LIMIT FILLS SILENTLY:
Workbook A: 8 format definitions (clean, new file)
Paste from Team B's report: +847 format definitions (their styles imported)
Paste from Finance template: +1,203 format definitions
Monthly copy-paste cycle × 18 months: ~38,000 format definitions
One large paste from external vendor: +29,000 format definitions

Total: 64,000+ → ERROR ON NEXT FORMAT ATTEMPT
No warning was shown until the limit was hit.

Table of Contents


Fix 1: Inquire Add-In (Fastest)

Root cause: Orphaned format definitions — format combinations that were once applied to cells but are no longer used. The workbook still stores the definition even after the cells are deleted or reformatted.

Step 1: Enable the Inquire add-in. File → Options → Add-ins → at the bottom, change dropdown to "COM Add-ins" → click Go → check "Inquire" → OK.

If Inquire does not appear in the COM Add-ins list, it is not included in your Office installation (some volume licensing versions exclude it). Use Fix 2 instead.

Step 2: Run the cleanup. Inquire tab → Clean Excess Cell Formatting → Apply to All Sheets → OK.

Step 3: Save immediately. Ctrl+S. The cleanup only persists when the file is saved. If you close without saving, the format definitions return.

BEFORE Inquire cleanup:
Unique cell format definitions: 61,847
File size: 87MB
Applying bold to one cell: ❌ "Too many different cell formats"

AFTER Inquire cleanup:
Unique cell format definitions: 412
File size: 19MB
Applying bold to one cell: ✅ Instant

After this fix: All formatting changes work again. File size drops significantly. Visible formatting in the workbook is unchanged — Inquire only removes unused format definitions, not applied styles.


Fix 2: VBA Macro (If Inquire Unavailable)

When to use: Inquire is not available in your Excel installation, or you need to automate cleanup across multiple workbooks.

Sub CleanExcessFormats()
    Application.ScreenUpdating = False
    
    Dim ws As Worksheet
    Dim usedRange As Range
    Dim cell As Range
    
    ' Method: copy data values-only to a new workbook, copy back
    ' This forces Excel to rebuild only the formats that are actually used
    
    Dim sourceWb As Workbook
    Dim tempWb As Workbook
    Set sourceWb = ThisWorkbook
    
    For Each ws In sourceWb.Worksheets
        ' Copy entire used range as values to temp workbook
        If Not ws.UsedRange Is Nothing Then
            ws.UsedRange.Copy
            Set tempWb = Workbooks.Add
            tempWb.Sheets(1).Paste
            tempWb.Close SaveChanges:=False
        End If
    Next ws
    
    ' Alternative simpler approach: save as XLSX which resets format registry
    ' File → Save As → Excel Workbook (.xlsx) on an already-.xlsx file
    ' forces format consolidation
    
    Application.ScreenUpdating = True
    MsgBox "Format cleanup complete. Save the file to preserve changes."
End Sub

Simpler alternative: Save As → choose .xlsx format (even if already .xlsx). On some Excel versions, this forces a format registry rebuild that clears unused definitions. Test on a copy of the file first.


Fix 3: Manual Cleanup for Severe Cases

When to use: The Inquire cleanup reduced the count but the error persists (some workbooks have legitimate complex formatting that still approaches the limit).

Step 1: Identify the heaviest sheets. The format limit is per workbook, but individual sheets often carry disproportionate loads. Copy each sheet to a new workbook and note the file size — the heaviest sheets are the format contributors.

Step 2: Delete custom styles via Style Manager. Home → Cell Styles → right-click any custom style → Delete. This removes the style definition from the workbook. Built-in styles (Normal, Good, Bad, Heading 1, etc.) cannot be deleted. Custom styles — named combinations created manually or imported from other workbooks — can be.

For bulk deletion via VBA:

Sub DeleteCustomStyles()
    Dim sty As Style
    Dim toDelete() As String
    Dim count As Integer
    count = 0
    
    ' First pass: collect custom style names
    For Each sty In ActiveWorkbook.Styles
        If Not sty.BuiltIn Then
            ReDim Preserve toDelete(count)
            toDelete(count) = sty.Name
            count = count + 1
        End If
    Next sty
    
    ' Second pass: delete collected styles
    Dim i As Integer
    For i = 0 To UBound(toDelete)
        On Error Resume Next
        ActiveWorkbook.Styles(toDelete(i)).Delete
        On Error GoTo 0
    Next i
    
    MsgBox "Deleted " & count & " custom styles."
End Sub

Step 3: Normalize styles on heavy sheets. Select all cells (Ctrl+A) → Home → Cell Styles → "Normal." This strips all explicit formatting and returns cells to the default style. Warning: this removes all visible formatting. Only use on sheets where formatting is not meaningful (raw data imports, reference tables).

Step 4: Replace custom styles with named styles. If the workbook uses many one-off font/color/border combinations, replace them with defined Cell Styles (Home → Cell Styles → New Cell Style). Named styles count as one format definition regardless of how many cells use them.


How to Check Your Current Format Count

Excel does not display the format count in the UI. The quickest check is file size as a proxy — workbooks approaching the format limit are typically 5–10× larger than their data would normally require.

For an exact count, check via the Open XML structure:

  1. Save the file as .xlsx
  2. Change the file extension to .zip
  3. Open the zip → xl folder → styles.xml
  4. Count <xf elements in the <cellXfs> section — this is the number of unique format definitions

What the XML actually looks like — bloated vs clean:

❌ BLOATED styles.xml (near limit — 61,847 entries):
<cellXfs count="61847">
  <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
  <xf numFmtId="0" fontId="1" fillId="0" borderId="0" xfId="0"/>
  <xf numFmtId="0" fontId="2" fillId="0" borderId="0" xfId="0"/>
  ... (61,844 more entries — most never referenced by any cell)
</cellXfs>

File size contribution from styles.xml alone: ~47MB
Total file size: 87MB (for a workbook with 50K rows of data)
✅ CLEAN styles.xml (after Inquire cleanup — 412 entries):
<cellXfs count="412">
  <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>
  <xf numFmtId="14" fontId="0" fillId="0" borderId="0" xfId="0"
      applyNumberFormat="1"/>
  ... (410 more entries — all actively used by cells in the workbook)
</cellXfs>

File size contribution from styles.xml: ~380KB
Total file size: 19MB (same data)

The count attribute in <cellXfs> is the exact number. Any count above 50,000 is approaching the limit.

Any count above 60,000 means the next large paste will very likely trigger the error.


Preventing the Limit From Returning

Paste values only, always. The most reliable prevention is a habit change: when pasting data from any external source, use Ctrl+Alt+V → Values (not Ctrl+V). This pastes the data without importing the source workbook's format definitions. The format count stays stable regardless of how many external files you paste from.

Use the same base template. If multiple teams contribute to one workbook, start from a shared template with a defined, minimal set of styles. Format divergence accumulates fastest when each contributor brings their own style habits.

Run Inquire cleanup quarterly. For workbooks that receive regular copy-paste input, add a quarterly "Inquire → Clean Excess Formats → Save" step to the maintenance workflow. This keeps the count well below the limit before it causes problems.

For large files with accumulated bloat: Excel Data Cleaner strips excess formatting across all sheets in your browser — no Inquire add-in required, no Excel version dependency.


Additional Resources

Official Documentation:

Related SplitForge Guides:

Technical Reference:


FAQ

Excel stores a definition for every unique combination of font, size, color, border, fill, number format, and alignment used in the workbook. The limit is 64,000 unique combinations. The most common cause is copy-pasting from other workbooks — each paste imports the source workbook's format definitions, even when pasting values only. Over months of collaborative work, the count accumulates silently until a new paste pushes it over the limit.

No. Inquire's "Clean Excess Cell Formatting" removes only unused format definitions — combinations that were once applied but are no longer referenced by any cell. All visible formatting (colors, bold, borders, fills on actual cells) is preserved. The only observable change is that the file gets smaller and the error goes away.

Format definitions are stored in the styles.xml file inside the .xlsx package. A workbook approaching the 64,000 limit has a styles.xml that can be 10–50MB on its own — larger than the actual data in many cases. Removing 60,000 unused format definitions reduces styles.xml to a few KB, which is why file size can drop by 70–90% from format cleanup alone.

Yes. The most effective prevention is always pasting values only (Ctrl+Alt+V → Values) rather than using Ctrl+V. This prevents the source workbook's format definitions from being imported. Running Inquire's cleanup quarterly on workbooks that receive regular copy-paste input also keeps the count well below the limit.


Clean Format Bloat Without Opening in Excel

Strip excess cell format definitions across all sheets without Inquire
Works on files too large or corrupted for normal Excel editing
Files process locally in browser threads — nothing transmitted to any server
No installation required — open once, clean immediately

Continue Reading

More guides to help you work smarter with your data

csv-import-guides

CSV Delimiter Errors: Fix Comma vs Semicolon for International Teams

Stop all data in Column A errors. Learn comma, semicolon & tab CSV delimiters plus quick fixes for global teams.

Read More
csv-guides

How to Split Large CSV Files Without Excel (Even 1M+ Rows)

Need to split a massive CSV file but Excel keeps crashing? Learn how to split files with millions of rows safely in your browser without uploads.

Read More
excel-guides

Batch Convert Multiple Excel Files to CSV Without Opening Each One

Opening 50 Excel files one at a time to save as CSV takes 45 minutes and produces inconsistent results. Three methods handle the same task in under 60 seconds — none require opening a single file.

Read More

We use analytics cookies to improve SplitForge. Your files never leave your browser — ever. Privacy policy