How to hide duplicate cells in excel
Tutor 5 (87 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To hide duplicate cells in Excel, use Conditional Formatting with a custom number format or apply filtering methods that display unique values while keeping all data intact.
Method 1: Hide Duplicate Values Using Conditional Formatting (Recommended)
This method hides duplicate values visually without deleting or changing the data.
Steps
Select the range of cells that contains duplicates.
Go to the Home tab.
Click Conditional Formatting.
Select New Rule.
Choose Use a formula to determine which cells to format.
Enter the formula below, assuming the first cell in the range is A1.
=COUNTIF($A$1:$A$100,A1)>1
Click Format.
Open the Number tab.
Select Custom.
Enter the format shown below.
;;;
Click OK.
Click OK again.
Result
Duplicate values become invisible while unique values remain visible. The data structure stays unchanged.
Why this works
The formula identifies repeated values. The custom format hides the displayed content while keeping the actual value stored in the cell.
Method 2: Hide Duplicates Using Advanced Filtering
This method temporarily hides duplicate rows by showing unique values.
Steps
Select the column or data range.
Go to the Data tab.
Click Advanced in the Sort & Filter group.
Select Filter the list, in-place.
Check Unique records only.
Click OK.
Result
Unique values remain visible. Duplicate rows are hidden until the filter is cleared.
Method 3: Hide Duplicates Using a Helper Column
This method provides visibility control using logical results.
Steps
Insert a new column next to the data.
Enter the formula below in the helper column, assuming data starts in A1.
=COUNTIF($A$1:$A$100,A1)
Copy the formula down.
Apply a filter to the helper column.
Filter values greater than 1.
Result
Rows containing duplicates are hidden using filtering logic while original values remain unchanged.
Windows and Mac Differences
Conditional Formatting steps and formulas are identical.
Advanced Filter is available on both platforms, though the dialog placement differs slightly in the Data tab.
Custom number formats behave the same on both systems.
Key Notes for Accuracy and Control
Conditional Formatting provides the most flexible and reversible method.
Filtering methods hide entire rows, not individual cells.
Custom number formatting hides display values without altering formulas or calculations.
Clearing formatting restores all hidden duplicates instantly.
Common Mistakes to Avoid
Using Remove Duplicates when hiding is required.
Applying formulas without absolute references.
Formatting text color instead of using custom formats.
Filtering without understanding row-level visibility.
When to Use Each Method
Conditional Formatting works best for dashboards and reports.
Advanced Filtering suits data review and auditing.
Helper columns support complex logic and repeatable workflows.
Each method preserves data integrity while controlling visibility based on duplication logic.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
What is the formula to highlight duplicate values
Answers · 1
What is the formula to remove duplicates
Answers · 1
How to delete duplicate values in excel
Answers · 1
How to delete duplicate rows based on one column
Answers · 1