How to hide rows if duplicate in Excel?

For example you have a table with some duplicate rows, and now you want to hide these duplicate rows, how do you get it done in Excel? Here I will introduce both methods to solve it easily.


Hide rows if duplicate with Advanced Filter feature

Actually, we can apply Microsoft Excel’s Advanced Filter feature to hide duplicate rows in a range easily. You can do as follows:

1. Select the range that you will hide duplicate rows, and click the Data > Advanced.

2. In the opening Advanced Filter dialog box, check the Unique records only option, and click the OK button.

Then you will see only unique rows are filtered out in the selected range as below screen shot shown:


Hide rows if duplicate with Kutools for Excel

Sometimes, you may want to hide all duplicate rows including the first one (or excluding the first one). In this case, you can try Kutools for Excel’s Select Duplicate & Unique Cells utility in Excel.

Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Free Trial Now!

1. Select the range that you will hide duplicate rows, and click the Kutools > Select > Select Duplicate & Unique Cells.

2. In the Select Duplicate & Unique Cells dialog box, check the Duplicates (Except 1st one) option or All duplicates (Including 1st one) option, check the Select entire rows option, and click the Ok button. See below screen shot:

A dialog box will pops out and display how many rows have been selected. Click the OK button to close it.

3. Right click the selected row header and select the Hide from the right-clicking menu.

Then you will see all duplicate rows are hidden at once as following screen shots shown:

Select Duplicates (Except 1st one), you can get result:

Select All duplicates( Including 1st one), you can get result:

Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now

Quickly select all duplicate/unique values from a column in Excel

General, we can remove duplicates from a list easily with Data > Remove Duplicates in Excel. But how to select duplicate/unique values, or count them from a column? And what if selecting or counting duplicate/unique except the first duplicate one? Try Kutools for Excel’s Select Duplicate & Unique Cells utility! Full Feature Free Trial 30-day!
ad select duplicate unique values 2

Kutools for Excel - Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now

Demo: Hide rows if duplicate with Kutools for Excel


Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Download and Free Trial Now!

Related articles:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Markus · 23 days ago
    Is this also possible with VBA in Excel?
    I want to automate the filtering when saving and closing document.