Once we have identified common values, we can extract a list of common values from either list.

This is because we need the resulting array from XMATCH to match the dimensions of thearrayprovided to FILTER.

The first step in this process is identifying common values.

Excel formula: Unique values

Since the lookup item in XMATCH is most often a single value, you might find this configuration strange.

Rest assured, there is a method to this madness.

The #N/A errors represent values in B5:B16 thatwere not foundin the range D5:D14.

Excel formula: Distinct values

The numbers represent the location of values thatwere found.

For example, looking at the first four values in the array:

And so on.

However, the numbers and errors are gone.

Excel formula: Unique values with criteria

This is exactly what we need for the FILTER function.

Values associated with 0 are removed.

However, it comes with a significant caveat: it only works on ranges.

Excel formula: Extract unique items from a list

This limitation is shared by all of the *IFs functions and isdiscussed in some detail here.

The output from FILTER is dynamic.

If source data or criteria change, FILTER will return a new set of results.

Excel formula: Unique values ignore blanks

It is a more robust and flexible successor to the MATCH function.

XMATCH supports approximate and exact matching, reverse search, and wildcards (* ?)

Values can be sorted by one or more columns.

Excel formula: Find missing values

SORT returns a dynamic array of results.

COUNTIF can be used to count…

FILTER function basic example

Excel FILTER function

Excel XMATCH function

Excel ISNUMBER function

Excel UNIQUE function

Excel SORT function

Excel COUNTIF function

Article image