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 30 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 30 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 30 days.


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
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 · 3 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 · 4 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 · 4 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.
  • To post as a guest, your comment is unpublished.
    Guy · 5 years ago
    i took the fomula of [b]Extract unique values by using array formula[/b] and the result i get is '0'
    is someone knows why and can help me please?
    • To post as a guest, your comment is unpublished.
      aid · 5 years ago
      Just use the [b]advanced filter[/b], [b]no need to make any list[/b]. Just enter target range, then in Advanced filter window tick - Copy unique values - pick location where to copy and done in just some clicks.
      The formula did not work for me either... and I had to sort out 300 values out of 2000.