In Microsoft Excel 2007, there are 3 basic ways to view and/or generate a list of unique values, including using an advanced filter, removing duplicates or applying conditional formatting. The method you choose depends upon whether you wish to simply filter values by temporarily hiding duplicates or whether you want to permanently remove values from your spreadsheet. The third option, conditional formatting, simply highlights the unique values for ease of viewing within the spreadsheet.
- Skill level:
Other People Are Reading
Things you need
- Microsoft Excel
Highlight the cells you wish to filter for unique values.
Click the "Data" tab and select "Sort & Filter," then "Advanced." Inside the box that pops up, choose "Filter the list, in place" if you wish to filter the data within the spreadsheet. You can also copy the filtered list into a new table by clicking "Copy to another location," then selecting the cell range you wish to paste by entering the range in the "Copy to" field.
Choose the check box for "Unique records only," then click "OK" to generate the list of values.
Highlight the cells from which you wish to remove duplicate values.
Navigate to the "Data" tab and select "Remove Duplicates," which is located in the data tools group.
Select one or more columns under the "Columns" section in the pop up box, based upon those columns from which you wish to remove duplicates. Click "OK."
A message will display showing how many values were removed from the data table and how many unique values are left. Document the information you need, then click "OK" to view the table.
Highlight the cells to which you wish to apply conditional formatting for unique values.
Select "Conditional Formatting" under the "Home" tab and within the "Style" group,
Choose "Manage Rules," then select "New Formatting Rule."
Ensure the cell range and worksheet displayed in the "Show formatting rules for" box are appropriate. Then select "Edit rule."
Select "Format only unique or duplicate values." in the Edit Formatting Rule box that pops up. In the "edit the rule description" field, choose "Format all" as the list and then choose "unique" or "duplicate," depending upon which items you want to highlight. Choose the type of formatting you want (i.e., colour, font, fill) then click "OK."
Tips and warnings
- Prior to obtaining a list of unique values, ensure your data is formatted consistently. For example, if the same date is listed as 8/27/83 in one cell and August 27, 1983 in another cell, Excel will treat each as a unique value, even though they are the same date.
- In Excel 2003, unique values can be identified using filters, just as described for Excel 2007.
- Conditional formatting and removal of duplicate values are not readily available in Excel 2003.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for