Formatting Issues

How to Stop Excel from Changing Cell Colors Automatically for Duplicate Values

Steve KSteve K Nov 10, 2026 868 views

Question details

The user needs to prevent the spreadsheet from automatically changing the background color of cells when duplicate values are entered.

How to Stop Excel from Changing Cell Colors for Duplicate Values
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 you start

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.

Solution 1Recommended

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.

1
Select the affected cells

Highlight the specific cells, rows, or columns where the background color automatically changes.

2
Open the Conditional Formatting Rules Manager

Navigate to the Home tab on the top ribbon, click on Conditional Formatting, and select Manage Rules from the dropdown menu.

3
Locate the Duplicate Values rule

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.

4
Delete the rule

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.

5
Apply changes

Click Apply and then OK to close the window and restore your cells' normal formatting.

Remove or Modify the Duplicate Values Conditional Formatting Rule
Formatting Restored: Once the rule is deleted, your cells will return to their default background color and will no longer react to duplicate entries.
WPS Spreadsheet Solution

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. 1. Open your file in WPS Office: Launch WPS Spreadsheet and open the document containing the unwanted cell colors.
  2. 2. Select the target cells: Highlight the data range where the automatic duplicate coloring is happening.
  3. 3. Access Conditional Formatting: Navigate to the Home tab and click the Conditional Formatting icon.
  4. 4. Clear the rules: Select Clear Rules > Clear Rules from Selected Cells to instantly remove the background colors.
Easily identify and clear unwanted duplicate value highlights in a few clicks.Fully compatible with Microsoft Excel (.xlsx, .xls) formatting rules.Lightweight software with a familiar, easy-to-use interface.
microsoft office alternative - wps office

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.