How to Highlight Excel Cells When Values Change
Question details
The user wants to identify and highlight cells in a worksheet after their values are changed or repeated subsequent to the initial entry.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking recurring data entries or monitoring specific columns for duplicate entries added over time.
- Observed behavior
- The user needs an automated way to apply visual formatting based on cell changes, rather than manually checking each entry.
Identify the exact range of cells you want to monitor. Keep in mind that conditional formatting identifies currently repeated values, but it does not store or recall original overwritten data.
Apply Conditional Formatting Using a Custom Formula
Use a custom COUNTIF formula to automatically apply a background color or text format when a value repeats or changes within a designated range.
This method involves setting up a dynamic formula rule that checks if the current cell's value has appeared previously in the column above it. If it has, the conditional formatting triggers.
Click and drag to select the target range you want to monitor, for example, cell A1 down to A100.
Navigate to the Home tab on the top ribbon, click on Conditional Formatting, and select New Rule from the dropdown menu.
In the New Formatting Rule dialog box, click on 'Use a formula to determine which cells to format'.
In the formula input box, type =AND(A1<>"",COUNTIF(A$1:A1,A1)>1) ensuring the cell references match the top cell of your selected range.
Click the Format button, choose your desired highlight color under the Fill tab, and click OK twice to apply the rule.

Utilize Track Changes to View Overwritten Values
Since conditional formatting cannot retrieve original overwritten values, use the built-in tracking features to see exactly what changed, when, and by whom.
Highlight Changing Cell Values Easily in WPS Spreadsheet
WPS Spreadsheet provides robust support for advanced conditional formatting and custom formulas. It allows you to track changing and duplicate data efficiently in a familiar, user-friendly interface.
- 1. Open Your Data: Launch WPS Office and open your spreadsheet file.
- 2. Select the Target Range: Highlight the specific column or data range you want to monitor for changes.
- 3. Create a New Rule: Go to the Home tab, click Conditional Formatting, and choose New Rule.
- 4. Enter Your Custom Formula: Select the formula option, enter =AND(A1<>"",COUNTIF(A$1:A1,A1)>1), and click Format to set your highlight color.
- 5. Apply and Save: Click OK to apply the formatting instantly to your dataset.

Frequently Asked Questions
Does the conditional formatting formula remember the previous value of the cell?
No, conditional formatting only evaluates the current data in the cell against your rules. To see previous values that have been overwritten, you must use the Track Changes or Version History features.
Why is my entire column highlighting instead of just the changed cells?
This typically occurs due to incorrect absolute ($) and relative cell references in your formula. Ensure that the range inside the COUNTIF function is locked correctly at the top, such as A$1:A1, so the range expands properly as it evaluates down the column.
Can I use conditional formatting to highlight an entire row based on a changed value in one specific cell?
Yes, you can highlight an entire row by locking the column reference in your formula (for example, =$A1) and applying the conditional formatting rule to the entire data range across multiple columns.




