where data is the named range B5:B14. In older versions of Excel, you can use an array formula based on the MIN, IF, and COUNTIF functions as explained below. The UNIQUE function, new in Excel 365, will return a unique list of values from a set of data. By default, this is a list of any value that occurs one or more times in the data. UNIQUE has an optional third argument called exactly_once that will limit results to values that occur once only in the source data. To enable this feature, the argument needs to be set to TRUE or 1. Working from the inside out, the UNIQUE function is configured like this: For array, we provide the named range data. For the by_col argument, we use zero (0), since we want unique values by rows, not columns. Finally, for exactly_once, we provide 1, since we want only values that occur just once in the source data. Configured this way, UNIQUE returns the 4 values that appear only once: This array is returned directly to the MIN function, which returns the minimum value, 300, as the final result:

### Array formula with COUNTIF

If you are using a version of Excel without the UNIQUE function, you can find the minimum unique value with an array formula based on the COUNTIF, MIN, and IF functions. This is an array formula and must be entered with control + shift + enter, except in Excel 365. Working from the inside out, the COUNTIF function is used to generate a count of each value in the data like this: Because there are 10 values in the named range data, COUNTIF returns an array of 10 results: This array holds the count of each value. Next we test the array for values equal to 1: Again, we get an array with 10 results: Each TRUE value corresponds to a value in the source data that occurs just once. This array is delivered directly to the IF function, which uses it like a filter. Only values in data associated with TRUE make it into the array returned by IF, all other values are FALSE. This array is returned directly to the MIN function which automatically ignores logical values and returns the minimum of remaining values, 300, as a final result.

### Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.