Filter unique distinct text values in a range using “contain” condition in excel
Array formula in B12:
=INDEX(tbl, MIN((IF((COUNTIF($B$11:B11, tbl)=0)*(ISNUMBER(SEARCH($D$9, tbl))), ROW(tbl)-MIN(ROW(tbl))+1))), MATCH(0, COUNTIF($B$11:B11, INDEX(tbl, MIN(IF((COUNTIF($B$11:B11, tbl)=0)*(ISNUMBER(SEARCH($D$9, tbl))), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))+(SEARCH($D$9, INDEX(tbl, MIN(IF((COUNTIF($B$11:B11, tbl)=0)*(ISNUMBER(SEARCH($D$9, tbl))), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))=0), 0), 1) + CTRL + SHIFT + ENTER 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)
Related posts:
- Filter unique text values in a range using “contain” condition in excel
- Filter duplicate values in a range using “contain” condition in excel
- Filter unique text values from a range containing both numerical and text values in excel
- Filter unique distinct text values using “begins with” criterion in a range using array formula in excel
- Filter unique distinct values using “contain” condition of a column in excel
- Create a unique distinct text list from a range containing both numerical and text values in excel
- Filter unique text values using “begins with” criterion in a range in excel
- Filter text values existing in range 1 but not in range 2 using array formula in excel
- Filter common text values in range 1 and in range 2 using array formula in excel
- Filter duplicate text values in a range using “begins with” criterion in excel



December 22nd, 2009 at 10:02 pm
Your website came up in my research and I'm motivated by what you have penned on this issue. I am presently widening my enquiry and thus cannot contribute further, nonetheless, I have bookmarked your internet site and will be returning to keep up with any succeeding updates. Just Now love it and thanks for tolerating my input.