Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Too Many Formats when Sorting.

Too Many Formats when Sorting

Written by Allen Wyatt (last updated October 1, 2020)
This tip applies to Excel 97, 2000, 2002, and 2003


Debi is running into a problem when she tries to sort her worksheet. Instead of doing the sort, she gets a message that says "Too Many Different Cell Formats."

According to sources at Microsoft, this error occurs when your workbook gets close to exceeding one of the built-in limitations of Excel. A workbook can contain only about 4,000 "custom formats."

Custom formats are unique combinations of formatting attributes, applied to cells. For instance, let's say that you have two cells, both formatted for 10-pt. Arial type. Both use the same number format, and neither of them have borders applied. If you change the font size of one of the cells to 11-pt., then you now have two unique custom formats. If you copy the format of the 11-pt. cell to a third cell, you still have only two custom formats. But if you add a border to one of the 11-pt. cells, you now have three custom formats.

Basically, a custom format is any unique combination of things like typefaces, font sizes, colors, alignment, borders, or other cell attributes. If you have a workbook that has, say, 40 complex worksheets, then it is very possible to get close to the 4,000 custom-format limit.

There is only one way to correct the situation: Reduce the number of custom formats. Select a large block of cells in the workbook, and then choose Edit | Clear | Formats. If Excel won't let you do this even (perhaps you have put the workbook into an unstable state by having way too many custom formats), then you should copy the contents of your worksheets, one by one, to a new workbook. Make sure you use Edit | Paste Special | Formulas to do the pasting, so that your formulas are preserved and you don't copy formatting.

For further information on this topic, refer to the following Microsoft Knowledge Base article:

http://support.microsoft.com/kb/213904

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2554) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Too Many Formats when Sorting.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Protecting Fields

Fields are very helpful for inserting dynamic information or standardizing the information that appears in a document. ...

Discover More

Cannot View Graphics in a Document

Got a problem where you can't view any of the graphics you insert in your document? The solution could be simple, or you ...

Discover More

Using Seek In a Macro

When processing non-document text files in a macro, you have a wide range of commands available for your use. One of ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (menu)

Performing Complex Sorts

One way you can easily work with data in a worksheet is to sort it into whatever order you find most helpful. Excel ...

Discover More

Sorting by Columns

When you think of sorting Excel data, it is likely that you think of sorting rows. Excel also allows you to sort by ...

Discover More

Sorting a Range of Cells

When you sort data in a worksheet, you don't need to sort everything at once. You can sort just a portion of your data by ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.