Unique values are values existing only once in a range.

Unique list

BB and CC exists once in the "List" above. They are unique values.

unique values begins with in a range

Array formula in B12:

=INDEX(tbl, MIN((IF((COUNTIF(tbl, tbl)=1)*(COUNTIF($B$11:B11, tbl)=0)*(LEFT(tbl, LEN($D$9))=$D$9), ROW(tbl)-MIN(ROW(tbl))+1))), MATCH(0, COUNTIF($B$11:B11, INDEX(tbl, MIN(IF((COUNTIF($B$11:B11, tbl)=0)*(LEFT(tbl, LEN($D$9))=$D$9)*(COUNTIF(tbl, tbl)=1), ROW(tbl)-MIN(ROW(tbl))+1)), , 1))+(LEFT(INDEX(tbl, MIN(IF((COUNTIF($B$11:B11, tbl)=0)*(LEFT(tbl, LEN($D$9))=$D$9)*(COUNTIF(tbl, tbl)=1), ROW(tbl)-MIN(ROW(tbl))+1)), , 1), LEN($D$9))<>$D$9), 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 "begins with" 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.

(Excel 97-2003 Workbook *.xls)

Functions in this article

ROW(reference) Returns the rownumber of a reference

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

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

Returns a value or reference of the cell at the intersection of a particular row and column, in a given range

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

LEFT(text;num_chars) Returns the specified number of characters from the start of textstring

Returns the number of characters in a text string