top of page

You are learning Sorting and Filtering in MS Excel

How to copy formatting after sorting data in Excel?

Unfortunately, directly copying formatting after sorting data in Excel isn't straightforward because sorting rearranges the data, breaking the link between the cells and their original formatting.

Here are two alternative approaches to achieve a similar outcome:

1. Use Conditional Formatting:

1. Define your formatting rules: Set up conditional formatting rules that determine how cells should be formatted based on their content (e.g., highlight negative values in red).
2. Apply formatting to entire range: Instead of applying formatting to specific cells, apply the conditional formatting rules to the entire data range you want to sort.
3. Sort the data: Once the conditional formatting rules are applied, you can sort the data, and the formatting will automatically adjust based on the new cell values.

2. Sort by Another Column (Temporary):

1. Add a helper column: Consider adding a temporary helper column next to your data. In this column, enter a unique identifier (numbers or text) for each row.
2. Sort by helper column: Sort your data based on the helper column. This will maintain the original order of the cells and their formatting.
3. Copy formatting (optional): If needed, you can now copy the formatting from the unsorted cells to the sorted cells. However, this step might be unnecessary if conditional formatting is already applied.
4. Remove helper column: Once you're done, you can remove the helper column as it's no longer needed.

Remember, the best approach depends on your specific situation and the complexity of your formatting rules.

bottom of page