Table of Contents

  1. How to extract unique distinct values of a column
  2. How to extract unique values of a column
  3. How to extract unique distinct values of a column using advanced filter


Unique distinct values are all cell values but duplicate values are merged into one distinct value.

How to extract a unique distinct list from a column

Edit 2009-06-29

Formula in cell B2:

=INDEX(List,MATCH(0,COUNTIF($B$1:B1,List),0))+ CTRL + SHIFT + ENTER and copy it down as far as necessary.

Thanks, Eero!

Excel 2007 users can remove errors using iferror() function:

=IFERROR(INDEX(List,MATCH(0,COUNTIF($B$1:B1,List),0)),"") + CTRL + SHIFT + ENTER and copy it down as far as necessary.

The formula is an array formula. To create an array formula you press Ctrl + Shift + Enter after you have entered the formula.

Excel 2003 users can remove errors using isna() function:

=IF(ISNA(INDEX(List, MATCH(0, COUNTIF($B$1:B1, List), 0))), "", INDEX(List, MATCH(0, COUNTIF($B$1:B1, List), 0))) + CTRL + SHIFT + ENTER and copy it down as far as needed.

How this array formula works

=INDEX(List,MATCH(0,COUNTIF($B$1:B1,List),0))

The array formula uses MATCH() to find the first 0 (zero) value in the countif array. When you copy the array formula down the countif formula range expands. The first cell: COUNTIF($B$1:B1,List), the second cell: COUNTIF($B$1:B2,List)
and so on.

See picture below. Click for a larger image.

explaining

How to create a unique list

Unique values are values existing only once in a list.

How to extract a unique distinct list from a column

Array formula in C2:

=INDEX(List, MATCH(0, COUNTIF(C1:$C$1, List)+(COUNTIF(List, List)<>1), 0)) + CTRL + SHIFT + ENTER and copy the formula down as far as needed.

How to customize the formula to your excel spreadsheet

Change the named ranges. If your unique list starts at F3, change $B$1:B1 or C1:$C$1 in the above formula to $F$2:F2

Named ranges

List (A2:A20)
What is named ranges?

Download excel sample file for this tutorial.

Extract-a-unique-distinct-list-in-excel.xls
(Excel 97-2003 Workbook *.xls)

Read more related articles in the archive.

To extract duplicates, see this post: Extract a list of duplicates from a column using array formula in excel

How to extract unique distinct values of a column using advanced filter

Unique distinct values are all cell values but duplicate values are merged into one distinct value.

  1. Click "Data" in the menu
  2. Click "Advanced Filter" button on the ribbon
  3. Click "Copy to another location"
  4. Click "List range:" and select range to filter unqiue distinct values
  5. Click "Copy to: and select a range
  6. Click "Unique records only"
  7. Click "OK"!

Functions in this article:

MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value

INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range

IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

INDIRECT(ref_text,[a1])
Returns the reference specified by a text string

ROW(reference) returns the rownumber of a reference

SUM(number1,[number2],)
Adds all the numbers in a range of cells

LARGE(array,k) returns the k-th largest row number in this data set.

This blog article is one out of thirteen articles on the same subject "unique".

copy-of-how-to-extract-a-unique-list-in-excel.xls

  • Share/Bookmark

Related posts:

  1. Extract a unique distinct list sorted alphabetically removing blanks from a range in excel
  2. Extract a unique distinct list sorted from A-Z from range in excel
  3. Unique distinct list from a column sorted A to Z using array formula in excel
  4. Extract a unique distinct list from three columns in excel
  5. Unique distinct list sorted based on occurrance in a column in excel
  6. Extract a unique distinct list from two columns using excel 2007 array formula
  7. Create unique distinct list from column where an adjacent column meets criteria
  8. Extract distinct unique sorted year and month list from a date series in excel
  9. Create a unique distinct alphabetically sorted list, extracted from a column in excel
  10. Unique list to be created from a column where an adjacent column has text cell values