How to Highlight Duplicate Names Within Each Excel Column Independently
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.

- 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.
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.
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.
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.
Navigate to the Home tab on the ribbon, click on Conditional Formatting, and select 'New Rule'.
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).
Click the 'Format' button, choose your desired fill color or font style to highlight the duplicates, and click OK twice to apply the rule.

Apply the Duplicate Values Rule to Each Column Separately
If you only have a few columns to check, the simplest method is to apply Excel's built-in Duplicate Values rule to one column at a time.
Use an Advanced INDIRECT and ADDRESS Formula
For complex scenarios where standard referencing fails or ranges might dynamically shift, you can construct a rigid column-specific boundary using the INDIRECT and ADDRESS functions.
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. Open your file: Launch WPS Spreadsheet and open your document containing the data columns.
- 2. Select the target range: Highlight the specific column range (e.g., C4:G15) you want to format.
- 3. Open Conditional Formatting: Navigate to the Home tab, click Conditional Formatting, and select New Rule.
- 4. Apply your formula: Choose the formula option, enter your COUNTIF rule, customize the highlight color, and click OK to instantly spot duplicates.

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'.




