How to Clear Sort by Colour in Excel
In this article
Clearing a sort by colour in Excel removes conditional visual sorting applied to your data, restoring the original row order or allowing you to sort by other criteria like values or text. This is useful when you’ve sorted by cell or font colour for visual grouping but now need to reorganize data by numbers, dates, or alphabetical order. No special tools or add-ins are required—this works in all modern versions of Excel for Windows and Mac.
What You'll Need
- A Microsoft Excel file with data sorted by cell colour or font colour
- Access to the Data tab on the Excel ribbon
- Excel 2010 or later (recommended: Excel 365 or Excel 2019)
Step-by-Step
- Open the Excel file containing the data sorted by colour. Ensure the data is in a table or a contiguous range with headers.
- Select any single cell within the column that was used for colour sorting. You do not need to select the entire column, but the cell must be within the same data range.
- Go to the Data tab on the Excel ribbon at the top of the window.
- In the Sort & Filter group, click the Sort button. This opens the Sort dialog box.
- In the Sort dialog box, look at the Sort by dropdown. If it shows something like Cell Color, Font Color, or Cell Icon, click the dropdown arrow next to it.
- From the list of options, select None to remove the colour-based sorting criterion. If None is not visible, choose Column or Cell Values instead, depending on your version.
- Check the Then by section. If there are additional colour-based sort levels listed there, remove them one by one using the Remove button next to each row.
- Click OK to apply the changes. Excel will now unsort by colour and revert to the original row order or sort by the next available criterion.
- If you want to re-sort the data by a different value (like a date or number column), repeat steps 3–8 but select a different column in the Sort by dropdown.
Common Mistakes
- Trying to clear the sort by deleting the colour formatting instead of using the Sort dialog. Colour formatting (conditional or manual) is separate from the sort order—removing the colour won’t undo the sort.
- Selecting the wrong column before opening the Sort dialog. Excel uses the active cell’s column to determine which data range to apply changes to. If you select a cell outside your data range, Excel may not recognize the colour sort.
- Assuming that clicking Clear Sort exists as a button. Excel has no direct Clear Sort button; you must use the Sort dialog to remove the colour criterion.
- Not removing all sort levels. Sometimes Excel adds multiple levels (e.g., first by cell colour, then by value). If you only remove the first level, the second colour sort may still be active.
Tips
- Before sorting by colour, note which column you applied it to. This helps you locate the correct column when removing the sort later.
- Use the Sort Warning dialog if Excel prompts you about expanding the selection. Always choose Expand the selection to prevent data misalignment.
- After clearing colour sort, press Ctrl + Z if the result isn’t what you expected—you can undo to the previous state.
- To avoid accidentally reapplying colour sort, avoid using the Sort by Colour option from the right-click menu unless necessary.
- For large datasets, consider converting your range to a Table (Ctrl + T) before sorting. Tables retain structure better and reduce sorting errors.
Troubleshooting
- The Sort dialog doesn’t open: Make sure your selection is within a data range that Excel recognizes as sortable. Try selecting a cell in the first row of your data. If the Data tab is grayed out, check if the worksheet is protected.
- Colour sort reappears after clicking OK: You may have applied conditional formatting that automatically re-sorts. Go to Home > Conditional Formatting > Manage Rules and check if any rules include sorting behavior. Remove or edit those rules.
- No None option in the dropdown: In older Excel versions (2010–2013), the None option may not appear. Instead, select Column or Cell Values and choose the original column you want to sort by (e.g., Column A). This overrides the colour sort.
- Data rows are out of order after clearing: Excel may have sorted by multiple columns. Use the Sort dialog again and remove all levels, then re-sort manually using a primary key (like ID or date).
- Excel crashes or freezes during sort: Close and reopen Excel. If the issue persists, save the file as .xlsx (if it’s .xls) and try again. Large colour-sorted ranges with formulas can cause performance issues.
Frequently Asked Questions
Can I clear sort by colour without affecting my conditional formatting?
Yes. Sorting by colour and conditional formatting are separate features. Clearing the sort order only removes the sorting rule—it does not delete cell colours, font colours, or any formatting rules you’ve applied.
Why does Excel still sort by colour after I removed it?
There may be another sort level still active. Check the Sort dialog for any remaining entries under Then by. Remove each one individually using the Remove button until all colour-based levels are gone.
Does clearing sort by colour restore the original data order?
Not always. Excel doesn’t remember the original row order unless you added a sequential number column before sorting. If you need to restore the original sequence, add an index column (1, 2, 3...) before applying any colour sort.
Can I clear colour sort on a filtered range?
Yes, but first turn off filtering. Go to Data > Filter to remove the filter arrows, then clear the colour sort. Reapply the filter afterward if needed.
What if I sorted by colour across multiple columns?
Excel treats each column as a separate sort level. You must remove each colour-based level individually in the Sort dialog. Don’t assume removing one level clears them all.
Is there a keyboard shortcut to clear colour sort?
No. Excel does not provide a keyboard shortcut to remove colour-based sorting. You must use the Data tab > Sort dialog to manage sort criteria manually.