To clear a sort by color in Excel, you must remove the color-based sorting rule from your filter or sort settings. This restores your data to its original order or allows you to sort by values instead. No special tools or add-ins are needed—only Excel’s built-in filtering and sorting features. This process works on all modern versions of Excel for Windows and Mac, including Excel 365.
What You'll Need
- Microsoft Excel (2010 or later)
- A worksheet with filtered or sorted data using cell or font color
- Access to the Data tab or the filter dropdown arrows
Step-by-Step
- Click any cell within the column that was sorted by color. You do not need to select the entire column—just ensure your active cell is inside the data range.
- Look for the filter dropdown arrow in the header cell of that column. It appears as a small downward-pointing triangle. If you don’t see it, you may need to turn on filtering first: go to the Data tab and click Filter.
- Click the dropdown arrow to open the filter menu. You’ll see a list of unique values and color options at the bottom of the menu, labeled Filter by Color.
- At the bottom of the filter menu, locate the Filter by Color section. You’ll see options like Cell Color and Font Color, each with a small color swatch next to it.
- Click the color swatch that is currently applied. For example, if your data is filtered to show only cells with a green background, click the green swatch. This will toggle the filter off for that color.
- After clicking the color swatch, you’ll see the checkmark next to it disappear. If it was the only color selected, your entire dataset will now be visible again.
- If you have multiple color filters applied, repeat step 5 for each color swatch that is checked. Only uncheck the ones you want to remove.
- Once all color filters are cleared, click OK to apply the changes. Your data will now be displayed without any color-based filtering.
- To ensure the sort order is fully reset, go to the Data tab and click Sort (not the filter dropdown). In the Sort dialog box, check if any color-based criteria remain under Sort On. If you see Cell Color or Font Color, change it to Values or leave it blank, then click OK.
- Finally, if you no longer need filters, you can turn them off entirely by returning to the Data tab and clicking Filter again to remove the dropdown arrows from all headers.
Common Mistakes
- Clicking the filter dropdown but not scrolling to the bottom to find the Filter by Color section—many users assume the color filter is a top-level option and miss it entirely.
- Thinking that removing the color filter also removes the color formatting itself. It does not. Cell and font colors remain unchanged; only the filtering rule is cleared.
- Using the Sort command instead of the Filter dropdown to clear color sorting. Sorting by color is applied through filtering, so using the Sort dialog alone won’t remove the filter—it only lets you re-sort.
- Assuming that clicking Clear Filter From [Column Name] removes color filters. That option only clears value-based filters, not color-based ones. You must manually uncheck the color swatches.
- Not checking all columns. If you sorted by color across multiple columns, you must repeat the process for each one individually.
Tips
- To avoid accidentally sorting by color in the future, always check the filter dropdown for color swatches before applying any sort.
- If you frequently sort by color, consider using conditional formatting with distinct colors and naming them consistently—this makes it easier to identify and remove them later.
- Use the Sort dialog to view all active sort criteria. Go to Data > Sort > Options > Sort by Color to see exactly which colors are being used as sort keys.
- After clearing color filters, sort by column values (A to Z or Z to A) to reorganize your data predictably.
- Save a backup copy of your file before applying color sorts if your data is critical. Color-based sorting can be hard to reverse if you don’t know where to look.
- On Mac, the filter dropdown works identically, but the Data tab may be labeled Data or appear under the Home tab depending on your Excel version.
Troubleshooting
- Color filters won’t disappear: Ensure you’re clicking the color swatch itself—not the label next to it. Sometimes users click the word Cell Color instead of the small square next to it. Only clicking the swatch toggles the filter.
- No color options appear in the filter menu: This means no cells in that column have been colored. Confirm that you applied cell or font color formatting using the Fill Color or Font Color tools on the Home tab.
- Data still appears sorted by color after clearing: You may have applied a sort before the filter. Go to Data > Sort and remove all sort levels. Click Clear All if available, then reapply a value-based sort.
- Filter dropdown is missing: Go to the Data tab and click Filter. If the button is grayed out, your data may be in a table. Right-click the table, choose Table > Convert to Range, then reapply the filter.
- Excel crashes or freezes when clearing color filters: This often happens with very large datasets. Try filtering one column at a time, or copy your data to a new sheet and apply filters there.