Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Filtering Columns for Unique Values.

Filtering Columns for Unique Values

by Allen Wyatt
(last updated October 11, 2017)

3

It is not unusual to acquire or develop data tables that have duplicate values in a column. If you want to see only the unique values, without the duplicates, you want to filter your data table. Excel makes this rather easy for most scenarios. For instance, let's say you have a data table in which you have part numbers in column A. If you want to filter the list so you see only unique part numbers, you can follow these steps:

  1. Select one of the cells in the list of part numbers.
  2. Display the Data tab of the ribbon.
  3. Click the Advanced Filter tool (Excel 2007) or the Advanced tool (later versions of Excel) in the Sort & Filter group. Excel displays the Advanced Filter dialog box. (See Figure 1.)
  4. Figure 1. The Advanced Filter dialog box.

  5. I always like to choose the Copy to Another Location option.
  6. In the Copy To field, specify the cell where you want the list of unique, filtered values to be copied.
  7. Make sure the Unique Records Only check box is selected.
  8. Click on OK.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8732) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Filtering Columns for Unique Values.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Choosing a Character Size in the Equation Editor

The Equation Editor is a handy tool, particularly for those who must include mathematical equations in their documents. ...

Discover More

Deleting Names

Excel allows you to associate names with cells or ranges of cells. If you ever want to delete those names, you'll need the ...

Discover More

Extracting Hyperlink Information

In Excel, a hyperlink consists of two parts: the text displayed for the link and the target of the link. You can use a macro ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Advanced Filtering

Many people know how to use AutoFilter, but there are times when you need some more filtering muscle. Here's how you can use ...

Discover More

Extracting Targeted Records from a List

If you have a bunch of data in an Excel worksheet, you may need to work with just a subset of that data. One way to do that ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 3?

2017-10-17 09:26:39

Joshua

Thank you Paul. That was the issue.


2017-10-16 10:28:18

Paul

I think your table (or column in this case) needs headings in the top row . At present, Excel is treating "cat" as the heading. Try inserting a heading in cell A1.


2017-10-11 13:04:04

Joshua

Hi Allen,

I was trying this out and my list is
A1:A8
cat
dog
me
you two
345
dog
cat
meow

I clicked advanced filter and chose to copy unique values to column F. When I did this I got the following:
cat
dog
me
you two
345
cat
meow

Why did cat show up twice in the list? was it because there is a number? If so, why did the second dog filter out?

There are no spaces in either of the cat cells.

Thank you,


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.