Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to hide rows if duplicate in Excel?

Author Kelly Last modified

Table with duplicate rows

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.

Table with duplicate rows hidden


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.
Advanced button on the Data tab on the ribbon

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

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


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 - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

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

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:
Select Duplicate & Unique Cells dialog box

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

3. Right click the selected row header and select the Hide from the right-clicking menu.
Hide option on 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:
Distinct rows visible only

Select All duplicates( Including 1st one), you can get result:
Unique rows visible only

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! 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!


Kutools' Select Duplicate & Unique Cells interface and use case example

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Demo: Hide rows if duplicate with Kutools for Excel

Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in