Formula Errors

How to Fix Excel Conditional Formatting Incorrectly Flagging Duplicates

Steven ParkerSteven Parker Nov 2, 2026 870 views

Question details

Excel's conditional formatting incorrectly highlights unique rows as duplicates when evaluating concatenated keys.

How to Fix Excel Conditional Formatting Incorrectly Flagging Duplicates
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using the 'Highlight Duplicate Values' conditional formatting rule on a combined identifier column to locate duplicate records.
Observed behavior
Apparent duplicates are flagged incorrectly because the concatenated key omits a distinguishing field, contains hidden spaces, or combines values ambiguously.
Before you start

Before altering your formulas, ensure that all columns needed to uniquely identify a record are accounted for and that your data is free of trailing spaces.

Solution 1Recommended

Create a Robust Concatenated Unique Identifier with Delimiters

Use a specific character delimiter when combining column values to prevent ambiguous overlaps that Excel mistakes for duplicates.

When concatenating fields, merging '12' and '3' creates '123'. Merging '1' and '23' also creates '123', leading Excel to incorrectly flag them as duplicates. Using a delimiter like a hyphen guarantees uniqueness.

1
Set up an identifier column

Insert a new column next to your data block to serve as your unique identifier key.

2
Apply a concatenated formula with a delimiter

Enter a concatenation formula using a clear delimiter between each cell reference, for example: `=A2&"-"&B2&"-"&C2`.

3
Drag to fill

Click and drag the fill handle down to apply this formula to all rows in your dataset.

4
Apply Conditional Formatting

Select the new identifier column, go to the 'Home' tab, click 'Conditional Formatting', navigate to 'Highlight Cells Rules', and select 'Duplicate Values'.

Create a Robust Concatenated Unique Identifier with Delimiters
Tip: Including all relevant text columns and ensuring numbers use consistent formats in the formula will completely eliminate false positives.
Effortless Data Management

Easily Manage and Format Data with WPS Spreadsheet

WPS Spreadsheet provides powerful and intuitive data cleaning tools, reliable conditional formatting, and flawless function execution to handle duplicates accurately without complex setups.

  1. 1. Open your file: Launch WPS Spreadsheet and open your existing data document.
  2. 2. Select the target data: Highlight the columns or specific ranges you want to scan for duplicates.
  3. 3. Use Highlight Duplicates: Navigate to the 'Data' tab on the top ribbon and click on 'Highlight Duplicates'.
  4. 4. Apply formatting: Choose your preferred color formatting style to instantly and accurately spot identical records.
Fully compatible with Microsoft Excel formulas and formatting (.xlsx files).Built-in 'Highlight Duplicates' feature with customizable, error-free rules.Advanced data cleaning features to remove hidden characters instantly.Free and lightweight alternative for everyday heavy-duty data tasks.
QA img-9

Frequently Asked Questions

Why does Excel highlight unique values as duplicates?

Excel may highlight unique values if there are hidden trailing spaces making them seem identical, if underlying cell formatting differs, or if a concatenated helper column lacks specific delimiters, causing values to merge ambiguously.

How do delimiters prevent false duplicate highlighting?

Delimiters like hyphens or commas forcefully separate concatenated values. Without them, merging column values '12' and '3' becomes '123', which falsely matches the merged values of '1' and '23'. Delimiters make them uniquely '12-3' and '1-23'.

Does formatting a column as text fix conditional formatting errors?

Not inherently. While formatting as text standardizes the data type, it does not remove hidden spaces or resolve the ambiguous concatenated values that ultimately trigger incorrect duplicate detection.