Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

Video Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

Filtering unique values ​​and deleting duplicate data is a basic operation that everyone needs to know when using Excel. Join us to learn how to do that on Excel for Office 365, Excel Online, Excel 2007 and above.

Filter unique values ​​or delete duplicate data on Excel for Windows

  • To filter unique values, click Data> Sort & Filter> Advanced .
Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel
  • To delete duplicate values, click Data> Data Tools> Remove Duplicates .
Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

To highlight unique or duplicate values, use the Conditional Formatting command in the Style group on the Home tab .

Detailed instructions on how to filter unique values ​​and delete duplicate values ​​in Excel

Filtering for unique values ​​or eliminating duplicate values ​​are two similar tasks because the goal is to present a list of distinct values. However, there is an important difference. When you filter for unique values, the duplicate values ​​are only temporarily hidden. Removing duplicate values ​​means they are permanently removed from the spreadsheet.

Duplicate value is one of all minimum values ​​in a row that is identical to all other rows' values. Comparing duplicate values ​​depends on the data currently in the cell - not the value stored in the cell. For example, you have the same date value in different cells. One cell has the format 3/8/2006, the other is Mar 8, 2006. These values ​​are unique.

Check before deleting duplicates: Before removing duplicate values, you should first try filtering or formatting according to the unique values ​​to confirm you will achieve the expected results.

How to filter unique values

1. Select the range of cells or make sure the cell in use is in a table.

2. Click Data> Advanced (in the Sort & Filter group).

Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

3. In the Advanced Filter popup , do the following:

Filter local range of cells or tables:

  • Click Filter the list, in-place .

To copy filter results to another location:

  • Click Copy to another location .
  • In the Copy to box , enter a cell reference.
  • Alternatively, click Collapse DialogLearn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel to temporarily hide the popup window, select a cell on the worksheet, and then click ExpandLearn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel .
  • Check Unique records only , then click OK .

The unique values ​​in this range will be copied to the new location.

Eliminate duplicate values

When deleting duplicate values, only values ​​in cell range or table are affected. Any other values ​​outside the range of cells or tables will not change or move. Once the duplicate data has been deleted, the first occurrence of this value in the list is retained and other identical values ​​are deleted.

Because you are permanently deleting data, you should copy the original cell range or table into another worksheet or workbook before removing duplicate values.

The steps are as follows:

1. Select the cell range or make sure the active cell is in a table.

2. On the Data tab, click Remove Duplicates (in the Data Tools group ).

Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

3. Do one or more of the following:

  • In Columns , select from one or more columns.
  • To quickly select the entire column, click Select All .
  • To quickly delete the entire column, click Unselect All .

If the range of cells or table contains many columns and you want to select only a few columns, you can easily click Unselect All to remove it. Then, in Columns , select these columns.

Note: Data will be deleted from the entire column, even if you do not select all columns in this step. For example, if Column1 and Column2 are selected, but Column3 is omitted, the keyword used to find duplicates is the value of both columns 1 & 2. If duplicates are found in these columns, the entire row will be duplicated. remove, including other columns in the table or range above.

4. Click OK , the message number or number of duplicates will be deleted or deleted. Click OK to close this message.

5. Undo the change by clicking Undo or pressing Ctrl+ Zon the keyboard.

Common problems when deleting duplicates on summary or outline data tables

You cannot remove duplicate values ​​from outlined or aggregated outline data. To eliminate duplicates, you must delete both of these data.

Unique or duplicate values ​​that match conditions

Note: You cannot format conditional fields in the Values ​​area of ​​a PivotTable report with unique or duplicate values.

Quick format

1. Select one or more cells in a range, worksheet, or PivotTable.

2. On the Home tab , in the Style group , click the small arrow in Conditional Formatting> Highlight Cells Rules and select Duplicate Values .

Learn Excel - Lesson 6: How to filter unique values ​​and delete duplicate values ​​in Excel

3. Enter the value you want to use, then select the format.

Advanced format

1. Select one or more cells by range, table, or PivotTable report.

2. On the Home tab , in the Styles group , click the arrow in Conditional Formatting > click Manage Rules to bring up the Conditional Formatting Rules Manager window .

3. Follow one of the following steps:

  • To add conditional formatting, click New Rule to display the New Formatting Rule .
  • To change conditional formatting, start by making sure that the appropriate worksheet or table is selected in the Show formatting rules for list . If necessary, select another cell range by clicking the Collapse button in the Applies to to temporarily hide it. Select the new cell range on the worksheet, then open that popup window again. Select this rule, then click Edit rule to show Edit Formatting Rule .

4. In Select a Rule Type , click Format only unique or duplicate values.

5. In the Format all list of Edit the Rule Description , choose unique or duplicate .

6. Click Format to display the Format Cells window .

7. Select the number, font, border or fill format you want to apply when the cell value meets the condition, then click OK . You can choose more than one format. The format you choose will be displayed in the Preview panel .

Filter unique values ​​or delete duplicate data on Excel Online

In Excel for Web, you can delete duplicate values.

Delete duplicate values

When deleting a duplicate value, the effect only occurs on values ​​in a range of cells or tables. Other values ​​outside the cell range or table will not change or move. When the duplication is successfully deleted, the first occurrence of the value in the list will be retained, other identical values ​​will be deleted.

Note: You can always click Undo to get back the data after deleting duplicates. Ideally, you should copy the original cell range or table into another worksheet or workbook before removing duplicate values.

The steps are as follows:

1. Select the cell range or make sure the active cell is in the table.

2. On the Data tab , click Remove Duplicates .

3. In Remove Duplicates , uncheck any column where you do not want to delete duplicate values.

Note: Data will be deleted from the entire column, even if you do not choose to do so. For example, if you select columns 1 & 2, remove column 3. The keyword used to find duplicates is the value in both columns 1 and 2. If a duplicate is found in these two columns, the entire row will be deleted, including data in column 3.

Click OK . Notice of the amount of duplicate value to be deleted will appear. Click OK to close it.

Note: If you want to retrieve the data, just click Undo or Ctrl+ Zon the keyboard.

Sign up and earn $1000 a day ⋙

Leave a Comment

SUBTOTAL Function: Calculates the total value of a filtered list in Excel

SUBTOTAL Function: Calculates the total value of a filtered list in Excel

The sum function when filtering data is very important for Microsoft Excel users. This article will summarize for you how to filter and calculate sum in Excel using Subtotal.

How to Export Airtable to Excel and Google Sheets

How to Export Airtable to Excel and Google Sheets

Airtable lets you create and share relational databases easily. Export your Airtable data to Google Sheets or Excel to enjoy the benefits of advanced charts and data visualization.

Effective ways to use ChatGPT in Excel

Effective ways to use ChatGPT in Excel

Curious about how ChatGPT can enhance your Excel experience? Here are some tips for using ChatGPT in Excel.

How to use the WORKDAY function in Microsoft Excel

How to use the WORKDAY function in Microsoft Excel

In Microsoft Excel, the WORKDAY function is a date and time function and its purpose is to return the date before and after the specified number of working days. Working days do not include weekends or any days defined as holidays.

Why are so many people stopping using Google Sheets and going back to Excel?

Why are so many people stopping using Google Sheets and going back to Excel?

For a while, Google Sheets lured people away from Excel. But many people came back after realizing that Google Sheets is far from beating Excel.

How to use the TREND function in Excel

How to use the TREND function in Excel

You can calculate and visualize trends in Excel using the TREND function. Here's how to use the TREND function in Microsoft Excel.

How to enable and disable macros on Excel

How to enable and disable macros on Excel

The following article will guide readers how to enable and disable macros in Excel 2007, 2010, 2013 and 2016.

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel

How to fix the error of printing blank pages in Microsoft Excel. Why do some Excel documents not display data or contain blank pages when printed? Below are the reasons

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar

How to pin Word, Excel and PowerPoint files to the corresponding app icon on the Windows 11 taskbar, How to pin Office files to the taskbar icon on Windows 11? Invite

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save Excel files on Windows

How to fix the error of not being able to save an Excel file on Windows. If you can't save the Excel file, don't worry too much. Below are ways to fix the error of not being able to save the above Excel file

How to insert a picture into a cell using VBA in Excel

How to insert a picture into a cell using VBA in Excel

How to insert a picture into a cell using VBA in Excel, You can easily insert pictures into Excel spreadsheets and edit them with macro code. Here's how to insert images

How to enable auto-capitalization of the first letter of a sentence in Excel

How to enable auto-capitalization of the first letter of a sentence in Excel

How to enable auto-capitalization of the first letter of a sentence in Excel, Turning on the automatic-capitalization of the first letter of a sentence in Excel will save you a lot

How to calculate seniority work on Excel spreadsheets

How to calculate seniority work on Excel spreadsheets

Through this tutorial, WebTech360 will guide you how to calculate the seniority of a list of employees in the company via Microsoft Excel spreadsheet or WPS Spreadsheets.

IF and IFS functions in Excel: Usage and specific examples

IF and IFS functions in Excel: Usage and specific examples

The IF function in Microsoft Excel is one of the most commonly used logical functions. In the simplest sense, the IF function will return a result based on one or several input comparison data.

How to Add ChatGPT to Microsoft Edge Sidebar

How to Add ChatGPT to Microsoft Edge Sidebar

To quickly use ChatGPT on Edge browser, you can add it to the right Sidebar of the browser for immediate use when needed.

AI-generated photos created in 2023 are causing a stir

AI-generated photos created in 2023 are causing a stir

In 2023, a series of AIs that create images with just a short description were released, including OpenAI's Dall-E, Stability.AI's Stable Diffusion, and Meta's Midjourney, Imagine with Meta AI.

How to access your Chromebooks clipboard manager

How to access your Chromebooks clipboard manager

The ability to copy and paste is a basic, simple function that any operating system has and must have.

How to take a screenshot on OnePlus phones

How to take a screenshot on OnePlus phones

OnePlus phones have three ways to take screenshots, including taking scrolling screenshots without additional software.

How to Use Start11 to Completely Overhaul Windows 11

How to Use Start11 to Completely Overhaul Windows 11

The tool used to customize Windows 11, Start11, offers a free trial and then charges a one-time fee of $9.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

Top smartphones that emit the most dangerous radiation today

Top smartphones that emit the most dangerous radiation today

Stocklytics has released a list of the top smartphones with the highest radiation levels. Accordingly, Xiaomi and Samsung are the companies with the most smartphones with the highest radiation levels.

5 Best Google Sheets Add-ons to Make Data Analysis Easier

5 Best Google Sheets Add-ons to Make Data Analysis Easier

Google Sheets is a powerful tool for data analysis, but sometimes you need more power. There are plenty of add-ons that can speed up your spreadsheets and take your data processing to the next level.

The best way to scan and digitize old photos

The best way to scan and digitize old photos

Your precious old photos won't last forever. If you want to preserve your memories from time, damage, and dust, you need to bring them into the digital age.

Instructions to change Messenger color on phone, computer

Instructions to change Messenger color on phone, computer

Messenger has different chat themes for you to set for your chat. In addition to artistic chat themes or specific topics, you can also choose a color theme for Messenger.

How to play the Executioner lineup DTCL season 14

How to play the Executioner lineup DTCL season 14

The Executioner in season 14 stands out with his ability to deal powerful critical damage.

Latest X-Wukong Dai Chien Tam Gioi Code and how to redeem code

Latest X-Wukong Dai Chien Tam Gioi Code and how to redeem code

X-Wukong Dai Chien Tam Gioi gives players Gold, Linh Thach, Hon Ngoc... and many other attractive items through newbie giftcodes and event codes.

Latest Eternal Ember Code and How to Enter Code

Latest Eternal Ember Code and How to Enter Code

Eternal Ember Codes will give gamers currency and loot. Below are the Eternal Ember codes for you to enter and redeem, remember to follow this article for more code updates.

How to add a shared mailbox in Outlook

How to add a shared mailbox in Outlook

Shared mailboxes in Outlook make it easier for people to interact, view content, and share work together.

How to adjust the volume of each Chrome tab up to 600%

How to adjust the volume of each Chrome tab up to 600%

Volume Master is an extension installed on the Chrome browser that can adjust the volume of each separate tab on the browser, up to 600%.