Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to extract unique values from list in Excel?

For example, you have a list of multiple data in a Worksheet, and some of them are duplicate values, now you need to extract unique values only from the list, how could you do? This tutorial will tell you three easy and quick ways on extracting unique values in Excel.

Extract unique values (excluding or including first duplicates) by using array formula

Extract unique values (including first duplicates) by using Advanced Filter

Extract unique values (excluding or including first duplicates) with Kutools for Excel good idea3


quickly select duplicate or unique values in an Excel range.

In Excel sheet, if you have a range which includes some duplicate rows, you may need to select them or outstanding them, but how can quickly solve this job?If you have Kutools for Excel, you can use the Select Duplicate & Unique Cells utility to quickly select the duplicate ones or unique values in the range, or fill background and font color for the duplicates and unique values.  Click for 60 days free trial!
doc highlight duplicate across columns 6
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.

arrow blue right bubble   Extract unique values by using array formula

There are formulas for you to extract unique distinct values (including first duplicates) and unique values (excluding first duplicates).

Note: With formulas to solve the extracting is a little difficult and complex, if you want to extract unique values correctly and sympely, I suggest you to apply the second and third methods.

Extract unique distinct values (including first duplicates)

Select a blank cell, here I select C2, and enter this formula =IFERROR(INDEX($A$2:$A$8, MATCH(0, FREQUENCY(IF(EXACT($A$2:$A$8, TRANSPOSE($C$1:C1)), MATCH(ROW($A$2:$A$8), ROW($A$2:$A$8)), ""), MATCH(ROW($A$2:$A$8), ROW($A$2:$A$8))), 0)), "") ($A$2:$A$8 is the list range of the values you want to extract from, $C$1:C1 is the first cell of the column you want to put out the extracting result), press Shift + Ctrl + Enter buttons, then drag fill handle to fill the range you need. You can see the unique distinct values (including first duplicates) are extracted only:

Extract unique values (excluding first duplicates)

Before you using the formula, you need to define a name for the values range.

1. Select the range, for instance, A2:A8, and click Formula > Define Name. See screenshot:

2. In the New Name dialog, type a name for your range in the Name text box and then click OK to close the dialog. See screenshot:

3.Select a blank cell, here I select C2, type this formula =INDEX(List, MATCH(0,INDEX(COUNTIF(C1:$C$1, List)+(COUNTIF(List, List)<>1),0,0), 0)) (C1:$C$1 is the first cell of the column you want to put out the extracting result, and the List is the range name you defined in the second step ), press Shift + Ctrl + Enter buttons, then drag fill handle to fill the range you need. You can see the unique values (excluding first duplicates) are extracted only:

Note: If you drag the fill handle and fill the cells more than the number of unique values, the excess cells display as error #N/A. Just clear these errors.


arrow blue right bubble   Extract unique values (including first duplicates) by using Advanced Filter

In Excel, you can use Advanced Filter function to extract unique distinct values (including first duplicates) only.

1. Select the list range you want to extract unique distinct values from (including the list label), and click Data > Advanced. See screenshot:

2. In the Advanced Filter dialog, check Copy to another location, then select a single cell to put out your result values, and check the Unique records only. See screenshot:

3. Click OK, you can see the result:


arrow blue right bubble   Extract unique values (excluding or including first duplicates) with Kutools for Excel

The above methods may be not easy and quick enough for you, now you can apply Select Duplicate & Unique Cells feature of Kutools for Excel.

  Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select the data list (excluding the list label), and click Kutools > Select > Select Duplicate & Unique Cells. See screenshot:
doc extract uniques 1 1

2. In the Select Duplicate & Unique Cells dialog, check Unique values only or All unique(Including 1st duplicates) box as your need, and click Ok, a dialog pops up to tell you how many rows are selected, click OK to close it. See screenshot:
doc extract uniques 2 1

3. Then all the unique values (excluding or including first duplicates) are selected, copy them to another range you want. See screenshot:

Unique values only
All unique(Including 1st duplicates)
doc extract uniques 4
doc extract uniques 3

Tip: You also can highlight the unique values or duplicate values with Kutools for Excel's Select Duplicate & Unique Cells.doc extract uniques 5

With Kutools for Excel's Select Duplicate & Unique Cells, you can select only duplicates cells (excluding or including 1st one), and also can select the entire duplicate rows.

Click here for more information on Select Duplicate & Unique Cells.

arrow blue right bubble Select unique or duplicate values only



Kutools for Excel: 300 + functions you must have in Excel, 60-day free trial from here

quickly extract all email addresses from text strings to another location in Excel

Sometimes, you may have a list of text strings including the email addresses in Excel, and you want to extract the email addresses to another column for convenient use. With this case, how can you solve this mission? Kutools for Excel’s Extract Mail Address utility can quickly extract the email addresses from text string in Excel. Click for full-featured free trial in days!
doc extract email address
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.
 
 
 
 


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    ESSE · 2 years ago
    dears,

    greetings!!!

    I want to extract correspondent heading and field name with lookup value. the lookup value within a table of more than 20 column and 390 row by using large formula and now I am looking the correspondent heading and field name.
    regards;
  • To post as a guest, your comment is unpublished.
    Huzefa · 2 years ago
    How can I extract unique values to a different sheet altogether?

    There's a challenge after applying the above formulas. A window pops up which is titled Update Values :"File Name"


    Any help in this regard will be greatly appreciated. Thanking u.
    Huzefa.
  • To post as a guest, your comment is unpublished.
    prashant · 3 years ago
    Hi I need to know the solution for Extracting Unique values from 200 worksheets, but from a certain column. I have 200 tabs where in each tab in column J I have some operator names, and I want to get the unique name from all worksheets, into a new file. Please advice how to do that.
  • To post as a guest, your comment is unpublished.
    ritesh pandey · 3 years ago
    formula =INDEX(List, MATCH(0,INDEX(COUNTIF(C1:$C$1, List)+(COUNTIF(List, List)1),0,0), 0))
    Dear Sir, Please explain this formula . How countif is working here .
  • To post as a guest, your comment is unpublished.
    ZygD · 4 years ago
    No luck for me either with the formula.