Hide Duplicate Rows Based on One Column in Excel (4 Methods)

Method 1 – Hide Duplicate Rows Based on One Column in Excel Using the Advanced Filter

  • Select the dataset.
  • Go to Data, then to Sort & Filter, and choose Advanced.

Hide Duplicate Rows Based on One Column in Excel Using Advanced Filter

The Advanced Filter dialog box will appear.

  • Select Filter the list in place.
  • Insert the entire table range in the List range box.
  • Insert the cell range of the first column which is B4:B12 in the Criteria range box.
  • Select Unique records only and hit OK.

Advanced Filter dialog box: Hide Duplicate Rows Based on One Column in Excel Using Advanced Filter

This will automatically hide the duplicate rows based on the selected column.

Read More: How to Remove Duplicates Based on Criteria in Excel 


Method 2 – Use Conditional Formatting New Rule to Hide Duplicate Rows Based on One Column in Excel

  • Select the dataset.
  • Go to Home, then to Conditional Formatting, and choose New Rule.

Use New Rule of Conditional Formatting to Hide Duplicate Rows Based on One Column in Excel

A New Formatting Rule dialog box will appear.

  • Select Use a formula to determine which cells to format.
  • Insert the following formula in the Format values where this formula is true box.
=B5=B4
  • Click on the Format button.

New Formatting Rule dialog box: Use New Rule of Conditional Formatting to Hide Duplicate Rows Based on One Column in Excel

Format Cells dialog box will appear.

  • Go to the Font tab.
  • Select White in the Color section and hit OK.

All the duplicate rows will be hidden based on the previous column.

Read More: How to Hide Duplicates in Excel


Method 3 – Hide Duplicate Rows Based on One Column Using the COUNTIF Function and New Rule in Excel

  • Select your data table.
  • Go to Home, then to Conditional Formatting, and choose New Rule.

A New Formatting Rule dialog box will appear.

  • Select Use a formula to determine which cells to format.
  • Insert the following formula in the Format values where this formula is true box.
=COUNTIF($C$4:$C$12,$C4)>1

Formula Explanation

The COUNTIF function compares $C4 with the range $C$4:$C$12. If the result is larger than 1, that’s a duplicate entity.

  • Click on the Format button.

The Format Cells dialog box will appear.

  • Go to the Font tab.
  • Select White in the Color section and hit OK.

Format Cells: Hide Duplicate Rows Based on One Column Using COUNTIF Function & New Rule in Excel

All the duplicate rows will be hidden based on the first column.

Hide Duplicate Rows Based on One Column Using COUNTIF Function & New Rule in Excel

Read More: How to Use Formula to Automatically Remove Duplicates in Excel 


Method 4 – Use the CONCAT Function and the Context Menu to Hide Duplicate Rows Based on One Column

  • Create a helper column and insert the following formula in the top cell of the Helper column.
=CONCAT(B5:E5)
  • Press Enter.

Use of CONCAT Function to Hide Duplicate Rows Based on One Column

  • Drag the Fill Handle icon to the end of the Helper column.

  • Select the entire Helper column.
  • Go to Home, then to Conditional Formatting, choose Highlight Cells Rules, and pick Duplicate Values.

The Duplicate Values dialog box will appear.

  • Hit OK.

All the duplicate values will be marked in red color.

  • Select all the duplicate rows and right-click on them.
  • Click on Hide from the context menu.

Use of Context Menu to Hide Duplicate Rows Based on One Column

All the duplicate rows will be hidden.

Read More: How to Find & Remove Duplicate Rows in Excel 


Practice Section

You will get an Excel sheet like the following screenshot at the end of the provided Excel file, where you can practice all the methods discussed in this article.


Download the Practice Workbook


Related Articles


<< Go Back to Duplicates in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mrinmoy Roy
Mrinmoy Roy

Mrinmoy Roy, a dedicated professional with a BSc in Electronics and Communication Engineering from Khulna University of Engineering & Technology, Bangladesh, brings over two years of expertise to the ExcelDemy project. As a prolific contributor, he has authored around 180 articles, showcasing his deep knowledge and passion for Microsoft Excel, Data Analysis, and VBA. His unwavering commitment to continuous learning, combined with versatile skills, renders him well-suited for roles in data management and spreadsheet solutions. He has interest... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo