Formatting Issues

How to Highlight Duplicate Names Within Each Excel Column Independently

Maira MehtabMaira Mehtab Oct 28, 2026 869 views

Question details

The user wants to identify and highlight duplicate entries, but strictly on a per-column basis, preventing the system from flagging a name if it appears in a different column.

How to Highlight Duplicates Within Each Excel Column Independently
Product
Excel
Device & OS
not provided
Scenario
Tracking names across multiple shift or schedule columns where a name can legitimately appear once per column, but should be flagged if it appears twice in the same column.
Observed behavior
Applying standard Conditional Formatting for duplicate values across the entire dataset highlights a name if it is repeated anywhere in the range, causing false positives across different columns.
Before you start

Identify the exact cell ranges for each column you need to evaluate (e.g., C4:C15). Ensure your data does not contain hidden leading or trailing spaces, as these can prevent identical names from being recognized as duplicates.

Solution 1Recommended

Use a Dynamic COUNTIF Formula Rule (Recommended)

By using a relative column reference in a COUNTIF formula, you can apply a single conditional formatting rule to your entire dataset while forcing Excel to check for duplicates independently within each column.

This method is highly efficient because you only need to create one rule for the entire grid. By locking the row numbers but leaving the column letters relative (e.g., C$4:C$15), the formula automatically adjusts itself as it evaluates each subsequent column.

1
Select your entire data range

Click and drag to select the entire block of data you want to format, such as C4:G15. Make sure C4 is the active cell in your selection.

2
Open Conditional Formatting

Navigate to the Home tab on the ribbon, click on Conditional Formatting, and select 'New Rule'.

3
Enter the custom formula

Choose 'Use a formula to determine which cells to format'. In the formula box, enter exactly: =COUNTIF(C$4:C$15,C4)>1 (adjust the row numbers based on your actual data).

4
Set the format and apply

Click the 'Format' button, choose your desired fill color or font style to highlight the duplicates, and click OK twice to apply the rule.

Use a Dynamic COUNTIF Formula Rule (Recommended)
Relative Referencing: Because the column letters in C$4:C$15 are not locked with a dollar sign, Excel will dynamically shift the evaluation range to D$4:D$15 when it checks column D.
Efficient Spreadsheet Management

Highlight Column Duplicates Easily with WPS Spreadsheet

WPS Office provides a highly compatible and user-friendly Spreadsheet application that allows you to manage complex conditional formatting rules with ease, matching Microsoft Excel functionality perfectly.

  1. 1. Open your file: Launch WPS Spreadsheet and open your document containing the data columns.
  2. 2. Select the target range: Highlight the specific column range (e.g., C4:G15) you want to format.
  3. 3. Open Conditional Formatting: Navigate to the Home tab, click Conditional Formatting, and select New Rule.
  4. 4. Apply your formula: Choose the formula option, enter your COUNTIF rule, customize the highlight color, and click OK to instantly spot duplicates.
Free to download with a lightweight installationFully compatible with Microsoft Excel (.xlsx) formats and existing conditional formatting rulesIntuitive user interface for managing multiple rules effortlesslyCross-platform support across Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why does the standard duplicate rule highlight unique names in my column?

If you highlight a multi-column range (like C4:G15) and apply the built-in 'Duplicate Values' rule, the software checks for duplicates across the entire selected block. If a name appears in Column C and Column E, both are highlighted, even if they appear only once in their respective columns.

Can I copy the conditional formatting from one column to another?

Yes. If you applied the standard Duplicate Values rule to Column C, you can use the Format Painter tool to copy it to Column D. However, check the Conditional Formatting Rules Manager afterward to ensure the ranges didn't merge into a single cross-column evaluation block.

How do I remove the duplicate highlighting rules?

Select the affected cells, go to the Home tab, click Conditional Formatting, select Clear Rules, and choose either 'Clear Rules from Selected Cells' or 'Clear Rules from Entire Sheet'.