How to Stop Excel from Changing Cell Colors Automatically for Duplicate Values
Question details
The user needs to prevent the spreadsheet from automatically changing the background color of cells when duplicate values are entered.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Entering data into a spreadsheet where duplicate numbers trigger an unwanted background color.
- Observed behavior
- Cells automatically change color when a duplicate value is entered due to an active conditional formatting rule.
Before making changes, select the specific range of cells where the unwanted color changes occur, or click the triangle in the upper-left corner to select the entire worksheet if the issue is widespread.
Remove or Modify the Duplicate Values Conditional Formatting Rule
Use the Manage Rules feature to identify and delete the specific conditional formatting rule that highlights duplicate values without affecting other rules.
This method is ideal if your worksheet contains multiple conditional formatting rules and you only want to remove the one causing the duplicate value highlights.
Highlight the specific cells, rows, or columns where the background color automatically changes.
Navigate to the Home tab on the top ribbon, click on Conditional Formatting, and select Manage Rules from the dropdown menu.
In the Rules Manager window, change the 'Show formatting rules for' dropdown to 'This Worksheet'. Scroll through the list to find the rule applied to Duplicate Values.
Click on the Duplicate Values rule to select it, then click the Delete Rule button. Alternatively, you can change its 'Applies to' range if you want to keep it active for a different section.
Click Apply and then OK to close the window and restore your cells' normal formatting.

Clear All Conditional Formatting Rules from Selected Cells
Quickly remove all conditional formatting rules from a specific area if you do not need any automated formatting rules applied.
Easily Manage Conditional Formatting with WPS Spreadsheet
WPS Spreadsheet offers a highly intuitive interface to manage, edit, and clear conditional formatting rules. You can quickly stop unwanted cell color changes and maintain clean datasets without hassle.
- 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the document containing the unwanted cell colors.
- 2. Select the target cells: Highlight the data range where the automatic duplicate coloring is happening.
- 3. Access Conditional Formatting: Navigate to the Home tab and click the Conditional Formatting icon.
- 4. Clear the rules: Select Clear Rules > Clear Rules from Selected Cells to instantly remove the background colors.

Frequently Asked Questions
Why do my Excel cells turn red when I type a number?
This usually happens because a Conditional Formatting rule for 'Duplicate Values' is active in your worksheet. It automatically applies a color fill (such as light red) whenever it detects a number or text string that already exists within the selected range.
How do I remove the cell color without deleting the data?
You can remove the color by navigating to Home > Conditional Formatting > Clear Rules, and selecting 'Clear Rules from Selected Cells'. This removes the formatting completely while keeping all your typed data perfectly intact.
Can I change the color for duplicate values instead of removing it?
Yes. Under Home > Conditional Formatting > Manage Rules, select the existing Duplicate Values rule and click Edit Rule. From there, you can click the Format button to choose a different fill color, border, or font style for your duplicates.
Why does the color stay even after I delete the conditional formatting rule?
If the color persists, the cell likely has a standard manual background fill applied. Select the cell, go to the Home tab, click the Fill Color paint bucket icon, and choose 'No Fill' to remove it.




