## Extract unique values from a range

*Article updated on February 13, 2018*

**Question:** How do I extract values only occurring once in a range?

**Answer:**

### A range (tbl_text) containing text values

Array formula in B12:

copied down as far as necessary.

### A range (tbl_num) containing numbers

Array formula in D12:

copied down as far as necessary.

**Named ranges**

tbl_text (B2:D4)

tbl_num (B7:D9)

What is named ranges?

### How to implement array formula to your workbook

Change the named range. If your list starts at, for example, F3. Change $B$13:B13 to F2:$F$2, in the above formula.

### Download excel file for this tutorial.

Extract-unique-values-from-a-range-using-array-formulas.xls

(Excel 97-2003 Workbook *.xls)

### Functions in this article:

**COUNTIF(**range,criteria**)**

Counts the number of cells within a range that meet the given condition

**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

**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

**MIN(**number1,[number2]**)**

Returns the smallest number in a set of values. Ignores logical values and text

**ROW(**reference**)** returns the row number of a reference

**External resources:**

Identifying Unique Values In An Array Or Range (VBA function)

Count how many numbers between a specific value occurring multiple times

jeyner asks: I need to count in a list the interval between the same value. Example list, 1-2-3-1-4-5-1-6-7-8-9-7-8-1 So the […]Filter unique values from a range using array formula in excel

Unique values in a range are values occurring only once. This is what I am going to do in this […]### 2 Responses to “Extract unique values from a range”

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

Hi,

I need to use a similar functionality in which i need to extract unique records without dynamically. I need to use the values for a dashboard in Xcelsius tool which does not support ROW function.

could you please help me suggest some other function which could be used to extract unique records from a list of values dynamically.

Thanks.

Abhishek,

try an array. {1,2,3,...} instead of the row function.

Thanks for commenting!