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

Filtering Columns for Unique Values

by Allen Wyatt
(last updated June 15, 2013)

2

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 must 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. Choose Filter from the Data menu, then choose Advanced Filter. Excel displays the Advanced Filter dialog box. (See Figure 1.)
  3. Figure 1. The Advanced Filter dialog box.

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

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2754) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) 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

Printing without Track Changes Marks

If your document has a lot of markup visible in it, you may want to print a copy of the document that doesn't reflect those ...

Discover More

Copying the Results of Filtering

Filtering is a great asset when you need to get a handle on a subset of your data. Excel even makes it easy to copy the ...

Discover More

Unwanted Weekend Dates in Chart

If you chart data that includes dates along one of the axes, you might be surprised to find out that the chart includes data ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

MORE EXCELTIPS (MENU)

Pasting Leading Zeroes

Paste information into a worksheet, and you may be surprised to see leading zeroes disappear before your eyes. Here's how to ...

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 for this tip:

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. 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 7 + 8?

2017-02-10 05:55:38

Michael (Micky) Avidan

@Jeff,
Try DATA > REMOVE DUPLICATES.
--------------------------
Michael (Micky) Avidan
“Microsoft® Answers" - Wiki author & Forums Moderator
“Microsoft®” MVP – Excel (2009-2017)
ISRAEL


2017-02-09 17:15:07

Jeff

Hi,

I am trying to filter unique values in a column that is part of a table. I want to retain the relationship between the filtered column and the other columns next to it. Is there a way to do this so I end up with the filter column of unique values, and the rows that were next to each of those unique values?

Ex:
Prefiltered for unique value in first
column:

A 100 Joe
B 200 Bill
C 300 Frank
C 300 Frank
D 500 Harry

Filtered:

A 100 Joe
B 200 Bill
C 300 Frank
D 500 Harry



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.

Links and Sharing
Share