Create a unique distinct text list from a range with both numerical and text values

Formula in B15:

=INDEX(tbl, MIN(IF((COUNTIF($B$14:B14, tbl)=0)*ISTEXT(tbl), ROW(tbl)-MIN(ROW(tbl))+1)),MATCH(0, ISNONTEXT(INDEX(tbl, MIN(IF((COUNTIF($B$14:B14,tbl)=0)*ISTEXT(tbl), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))+COUNTIF($B$14:B14,INDEX(tbl, MIN(IF((COUNTIF($B$14:B14, tbl)=0)*ISTEXT(tbl),ROW(tbl)-MIN(ROW(tbl))+1)), , 1)), 0), 1) + CTRL + SHIFT + ENTER copied down as far as needed.

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.
Create a unique distinct text list 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

  • Share/Bookmark

Related posts:

  1. Filter unique text values from a range containing both numerical and text values in excel
  2. Extract duplicate text values from a range containing both numerical and text values in excel
  3. Extract and sort text cells from a range containing both numerical and text values
  4. Count unique text values in a range containing both numerical and text values
  5. Count unique distinct text values in a range in excel
  6. Filter text values existing in range 1 but not in range 2 using array formula in excel
  7. Filter common text values in range 1 and in range 2 using array formula in excel
  8. Create unique distinct list sorted based on text length using array formula in excel
  9. Filter unique distinct text values in a range using “contain” condition in excel
  10. Filter unique distinct text values using “begins with” criterion in a range using array formula in excel