How to keep formatting when sorting data in Excel?
In Excel, the cell formatting will be changed when you sort data. But in some cases, you may want to sort the data but keep the formatting in the original place as below screenshots shown. Now I will introduce a way to keep formatting when sorting data in Excel.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
With the ordinary way to format cells, these cells cannot keep the formatting when sorting, but if you format the cells with Conditional Formatting function, it will work.
1. Select the cell you will format, and click Home > Conditional Formatting > New Rule. See screenshot:
2. In the New Formatting Rule dialog, select Use a formula to determine which cells to format from the Select a Rule Type list, and then select the cell (only one cell) you select in the first step from the Format values where this formula is true box. See screenshot:
3. Click Format to go to Format Cells dialog, then you can specify the cell formatting you need.
4. Click OK > OK to close dialogs. Then the cell will keep its formatting when sorting.
Tip: You only can format one cell once time.
5. Select the data and sort them with clicking the Data > Sort. Then you will see the cell formatting is kept in the original position when sorting.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
- To post as a guest, your comment is unpublished.· 1 years agoMaravilha de informação me foi inclusive muito útil, mas fui usá-la também para classificar por ordem alfabética e percebi que para texto não aceitou. Consegue me ajudar? Muito bom este site.