KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to Hide Duplicate Values and Rows in Excel

AuthorSiluviaLast modified

Duplicate data is common in Excel worksheets, especially when working with customer lists, inventory records, sales reports, or imported data. In many cases, you may want to temporarily conceal repeated values or display only unique records without permanently removing any information.

Depending on your goal, you might need to visually hide duplicate values, display only unique rows, focus on unique records within a specific subset of data, or review unique records from filtered results. In this tutorial, we'll explore several practical methods to accomplish these tasks while keeping your original dataset intact.


Visually hide duplicate records in a range

This section is for cases where you do not want to hide rows or remove data. You only want duplicate cells to disappear visually, while the original values remain in the worksheet. This is useful when you need to keep the full dataset for formulas, sorting, filtering, or review, but want duplicate values to be less visible.

Before and after hiding duplicate values

Hide duplicates with Conditional Formatting

This method applies formatting to all duplicate values, including the first occurrences, so they blend into the worksheet background.

  1. Select the range containing your data.
  2. Click Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.
    Conditional Formatting menu on the ribbon
  3. In the Duplicate Values dialog box, choose Custom Format.
  4. On the Font tab, choose a font color that matches your worksheet background, such as white.
    Duplicate Values and Format Cells dialog boxes
  5. Click OK twice.

Duplicate values will now become invisible while remaining in the worksheet.

Before and after applying the Conditional Formatting

Notes:

  • This method only hides duplicates visually.
  • The data still exists and can be used in formulas, sorting, and filtering.
  • The built-in Duplicate Values rule treats all duplicate occurrences equally and cannot distinguish between the first occurrence and subsequent occurrences.

Pros

  • Fast and easy to apply
  • No formulas required
  • Works on any selected range

Cons

  • Cannot hide duplicates except the first occurrence
  • Formatting may become confusing in shared workbooks

Hide duplicates with Kutools' Select Duplicate & Unique Cells

Kutools for Excel provides more control over duplicate identification. Unlike Excel's built-in duplicate formatting, it allows you to choose whether the first occurrence should be included.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...
  1. Select the data range.
  2. Click Kutools > Select > Select Duplicate & Unique Cells.
  3. In the dialog box, choose Single cell.
  4. In the rule section, choose one of the following options:
    • Duplicates (Except 1st one)
    • All duplicate (Including 1st one)
  5. Check the Fill font color option, and specify the font color as white.
  6. Click OK.
    Select duplicate cells with Kutools for Excel

After clicking OK, all duplicates are formatted with the color you specified and visually hidden. Also, the duplicate cells are selected automatically, allowing you to perform further actions, such as deleting them, applying another format, copying them, or reviewing them directly.

Before and after applying Kutools for Excel

Pros

  • Can distinguish between first and subsequent duplicates
  • Easy to use
  • No helper columns required

Cons

  • Requires Kutools for Excel

Kutools for Excel - Packed with over 300 essential tools for Excel. Make Excel tasks faster, easier, and more efficient. Download now!


Hide duplicate rows

Sometimes you need to hide entire rows instead of individual duplicate values. This is common when each row represents a complete record, such as an order, customer, product, or transaction. In this case, hiding only the duplicate cells is not enough because the whole record should be removed from view.

Hide duplicate rows with Advanced Filter

Advanced Filter can display unique records while hiding duplicate records from view. When duplicate rows exist, Excel keeps the first occurrence visible and hides the remaining duplicate occurrences.

  1. Select your dataset. The selection must include the header row.
  2. Click Data > Advanced.
  3. In the Advanced Filter dialog box, choose Filter the list, in-place.
  4. Check Unique records only.
    Use Advanced Filter to hide duplicate rows in Excel
  5. Click OK.

Excel displays unique records and first occurrences only. Duplicate occurrences are hidden automatically.

Duplicate occurrences are hidden in Excel
Tip: To hide rows based on duplicates in a specific column, specify only that column as the List range. Excel will compare values in that column rather than the entire row.

Pros

  • Built into Excel
  • No formulas required
  • Quickly displays unique records

Cons

  • Keeps first occurrences visible
  • Must be reapplied when data changes

Hide duplicate rows with Kutools' Find Duplicates

Kutools for Excel provides a dedicated Find Duplicates feature for finding and hiding duplicate rows. It is useful when you want to compare full rows, or when you only want to compare selected columns, without preparing formulas or criteria ranges.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...
  1. Select your data range.
  2. Click Kutools > Find > Find Duplicates.
  3. Leave all checkboxes selected to find duplicate rows with completely identical values across all columns.
    Tip: If you want to hide rows when a specific column has duplicates, select only that column and leave other columns unchecked.
  4. Select Hide Duplicates.
  5. Click OK.
    Hide duplicate rows with Kutools Find Duplicates

The duplicate rows, excluding the first occurrences, are hidden at once.

Duplicate occurrences are hidden in Excel

Pros

  • Easy to use
  • No formulas or helper columns required
  • Supports selected columns

Cons

  • Requires Kutools for Excel
  • Keeps first occurrences visible

Kutools for Excel - Packed with over 300 essential tools for Excel. Make Excel tasks faster, easier, and more efficient. Download now!

Hide duplicate rows including first occurrences with COUNTIF and Filter

The two methods above keep the first occurrence visible. If you want to hide all rows that belong to duplicate groups, including the first occurrence, use a helper column and a formula.

  1. Insert a helper column beside your data.
  2. Enter one of the following formulas:
    • To hide rows when values in Column A occur more than once, including the first occurrences:
      =COUNTIF($A:$A,A2)>1
    • To hide duplicate rows when all values in columns A to C are the same, including the first occurrences:
      =COUNTIFS($A:$A,A2,$B:$B,B2,$C:$C,C2)>1
      Formula entered in the helper column

      📝 Note:

      The formula returns TRUE for rows that belong to a duplicate group (values that appear more than once in the dataset), and FALSE for rows that contain unique values only.

  3. Click Data > Filter.
  4. Filter the helper column for FALSE.
    Filter FALSE values to hide duplicate rows including first occurrences

After filtering for FALSE, only unique rows remain visible. All duplicate rows, including their first occurrences, are filtered out and hidden from view.

Duplicate rows including first occurrences are hidden

Pros

  • Can hide all duplicate records including first occurrences
  • Works in all modern Excel versions
  • Easy to customize for one column or multiple columns

Cons

  • Requires a helper column
  • Additional filtering steps required

Hide duplicates within records that meet specific criteria

Sometimes you may want to hide duplicates only within a specific subset of data. For example, you may want to display unique records from a particular region, department, or product category while ignoring all other records. In this case, you can use Advanced Filter to first filter the data based on your criteria and then display only unique records from the matching results.

Examples:

  • Display unique records only for customers in the West region.
  • Display unique products only for items with a quantity greater than 50.
  • Display unique orders only for records marked as Completed.

In this case, you can use Advanced Filter to filter the data based on your criteria and display only unique records within the filtered result:

  1. Prepare a criteria range.
    Prepare a criteria range for Advanced Filter

    💡 Tip: Make sure the criteria range uses the same headers as the source data. Then enter the condition below the appropriate header.

  2. Click Data > Advanced.
  3. Choose Filter the list, in-place.
  4. In the List range box, select your source data range, including the header row.
  5. In the Criteria range box, select the criteria range you prepared.
  6. Check Unique records only.
  7. Click OK.
    Use Advanced Filter with criteria and unique records only

According to your criteria, only the rows that meet the conditions and are unique are visible. Duplicate occurrences are hidden, while the first occurrence is kept visible.

Use Advanced Filter with criteria and unique records only

📝 Note:

Advanced Filter keeps the first occurrence of duplicate records visible.

💡 Tip:

Advanced Filter is a powerful filtering tool that lets you combine duplicate checking with one or more conditions:

  • Criteria entered on the same row work as AND conditions.
  • Criteria entered on different rows work as OR conditions.
    Use Advanced Filter with criteria and unique records only

Hide duplicates within filtered subsets

Sometimes duplicates only matter within the currently filtered records. For example, you may filter the data to show only one region, one month, or one product category, and then hide duplicates only within those visible records.

Examples:

  • Hide duplicate customers in the West region only.
  • Hide duplicate orders for the current month.
  • Hide duplicate products within a selected category.

In this situation, you can use a helper column to identify duplicate values among the filtered result:

  1. Insert a helper column beside the filtered data.
  2. Enter one of the following formulas:
    • To identify duplicate values in Column A within the currently visible rows, excluding the first occurrence:
      =IF(SUBTOTAL(103,A2),SUMPRODUCT(SUBTOTAL(103,OFFSET($A$2,ROW($A$2:A2)-ROW($A$2),0)),--($A$2:A2=A2))>1,FALSE)
    • To identify duplicate values in Column A within the currently visible rows, including the first occurrence:
      =SUMPRODUCT(SUBTOTAL(103,OFFSET($A$2,ROW($A$2:$A$100)-ROW($A$2),0)),--($A$2:$A$100=A2))>1
      Use helper formula to mark duplicates as TRUE

      📝 Note:

      The formula returns TRUE for rows that belong to a duplicate group, and FALSE for rows that contain unique values only.

  3. Click To Actual on the Kutools tab to convert the formula results into static values.
    To Actual on the Kutools tab

    Note:

    When a range is filtered, Excel copies only visible cells, which can make it difficult to paste the results back into the original range. Using To Actual avoids this limitation by converting the formulas directly to static values.

  4. Click Data > Filter.
  5. Filter the helper column:
    • Filter for FALSE if you want to hide duplicates and keep only unique visible records.
    • Filter for TRUE if you want to review the duplicate records first.
    Use helper formula to hide duplicates within filtered subsets

Conclusion

There are several ways to hide duplicates in Excel without deleting the original data. If you only want duplicate values to disappear visually, Conditional Formatting and Kutools' Select Duplicate & Unique Cells are convenient options. To hide entire duplicate rows, Advanced Filter and Kutools' Find Duplicates can quickly display unique records while keeping the first occurrence visible.

If you need more control, such as hiding all duplicate records including the first occurrence or working with specific subsets of data, helper formulas and filtering techniques provide greater flexibility. Choose the method that best fits your dataset and reporting requirements to make duplicate records easier to review and manage.

I hope you found this tutorial helpful. If you’d like to explore more Excel tips and practical solutions, please click here to browse our full collection of Excel tutorials.

How to join text from different cells into one cell in Excel?

If you have text spread across multiple cells and want to combine it into one cell, Excel offers simple solutions to accomplish this. You can use the CONCATENATE function to merge text into a single destination cell or opt for advanced tools like Kutools for Excel for more flexibility. This article provides step-by-step methods to handle this task efficiently.

A screenshot showing multiple cells with text to be merged into one cell in Excel

Join text from different cells into one with formulas

Join text from different cells into one with Kutools for Excel


arrow blue right bubble Join text from different cells into one with formulas

Applying the Concatenate function to join the different cell contents, please do as follows:

1. Enter this formula: =CONCATENATE(A2,"-",B2,"-",C2) into a blank cell next to your data, see screenshot:

A screenshot showing the CONCATENATE formula to merge text from different cells in Excel

2. Then drag the fill handle down to the cells that you want to join, and the different cells have been merged into one cell by the separator “-”, see screenshot:

A screenshot showing the result of merging text from different cells using CONCATENATE in Excel

Note: If there are more cells needed to be merged together, please join the cell references as this: =CONCATENATE(A2,"-",B2,"-",C2, "-",D2,"-",E2,...), and you can replace the “-” separator in the formula with any character you prefer.


arrow blue right bubble Join text from different cells into one with Kutools for Excel

Kutools for Excel contains a powerful tool - Combine Rows, Columns or Cells without Losing Data. With this utility, you can quickly merge multiple rows, columns, or ranges of cells into one cell using a separator of your choice.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Integrated with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the text range that you want to join together.

2. Then click Kutools > Merge & SplitCombine Rows, Columns or Cells without Losing Data, see screenshot:

A screenshot showing the Combine Rows, Columns, or Cells option in Kutools tab in Excel

3. In the Combine Columns or Rows dialog box, please do as follows:

(1) Choose one option that you want to join the text based on, you can join cells based on rows, columns or range or just combine all to one single cell;

(2) Specify a separator for your combined data as you need;

(3) Select a location to put the combined result;

(4) At last, choose the option to deal with the combined cells. You can keep or delete contents from those combined cells, and you can also merge those combined cells.

A screenshot of the Combine Columns or Rows dialog box with options to join text

4. After finishing the above settings, click Ok or Apply button, and all the selected text will be combined according to your settings. See screenshot:

A screenshot showing the result of merging text using Kutools

Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now


Demo: Join text from different cells into one cell in Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy AI-powered features for smarter and faster work! Download Now!

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.

ExcelWordOutlookTabsPowerPoint
  • 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