Filter unique text values from a range containing both numerical and text values in excel
Array formula in B15:
=INDEX(tbl, MIN(IF((COUNTIF($B$14:B14, tbl)=0)*(COUNTIF(tbl, tbl)=1)*ISTEXT(tbl), ROW(tbl)-MIN(ROW(tbl))+1)), MATCH(0, ISNONTEXT(INDEX(tbl, MIN(IF((COUNTIF($B$14:B14, tbl)=0)*(COUNTIF(tbl, tbl)=1)*ISTEXT(tbl), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))+(COUNTIF(tbl, INDEX(tbl, MIN(IF((COUNTIF($B$14:B14, tbl)=0)*(COUNTIF(tbl, tbl)=1)*ISTEXT(tbl), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))<>1), 0), 1) + CTRL + SHIFT + ENTER
Named ranges
tbl (B5:F11)
What is named ranges?
How to customize the formula to your excel spreadsheet
Change the named range. If your list starts at F3, change $B$14:B14 in the above array formula to $F$2:F2.
Download excel example file.
Unique-text-values-from-a-range-with-both-numerical-and-text-values.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
ISTEXT(value)
Checks whether a value is text, and returns TRUE or FALSE
ROW(reference) returns the rownumber of a reference
MIN(number1,[number2])
Returns the smallest number in a set of values. Ignores logical values and text
ISNONTEXT(value)
Checks whether a value is nontext (blank cells are not text) and returns True or False
Related posts:
- Create a unique distinct text list from a range containing both numerical and text values in excel
- Extract duplicate text values from a range containing both numerical and text values in excel
- Extract and sort text cells from a range containing both numerical and text values
- 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
- Count unique text values in a range containing both numerical and text values
- Filter unique text values in a range using “contain” condition in excel
- Filter unique distinct text values in a range using “contain” condition in excel
- Count unique distinct text values in a range in excel
- Filter unique text values using “begins with” criterion in a range in excel



Leave a Reply