## Filter unique distinct text values in a range using “contain” condition in excel

*Article updated on December 03, 2010*

### Array formula in B12:

copied down as far as needed.

### Named ranges

tbl (B3:D5)

What is named ranges?

### How to implement array formula to your workbook

Change the named range and "contain" cell reference ($D$9). If your list starts at, for example, F3. Change $B$11:B11 in the above formulas to F2:$F$2.

### Download excel sample file for this article.

Extract-unique-distinct-values-contains-in-a-range.xls

(Excel 97-2003 Workbook *.xls)

### Functions in this article

**ROW(**reference**)** Returns the rownumber of a reference

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

**ISNUMBER(**value)

Checks whether a value is a number and returns TRUE or FALSE

**SEARCH()** Returns the number of the character at which a specific character or text string is first found, reading left to right (not case sensitive)

Extract a unique distinct list and sum amounts based on a condition

Anura asks: Is it possible to extend this by matching items that meet a criteria? I have a list of […]Extract unique distinct values from a multi-column cell range

Question: I have cell values spanning over several columns and I want to create a unique list from that range. […]How to create a unique distinct list where other columns meet two criteria

Question: How do I create a unique distinct list where other columns meet two criteria using excel array formula? Answer: […]Extract unique distinct values from a filtered table [udf and array formula]

Robert Jr asks: Oscar, I am using the VBA code & FilterUniqueSort array to generate unique lists that drive Selection […]### One Response to “Filter unique distinct text values in a range using “contain” condition in excel”

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

I was working with values in a format like 10 x 20 = 200 , in twenty five values at one time only 5 to 8 values were present others were zero, it helped me a lot ,i extracted required result using = condition now i will have only required result in my sheet.

Thank u very much,God Bless you