Explanation

The general goal is to return the first text value in a range.

This problem can be solved using the XLOOKUP function.

In older versions of Excel, you might use the VLOOKUP function or an INDEX and MATCH formula.

Excel formula: Get first non-blank value in a list

It is also possible to solve this problem with a more modern array formula based on the ISTEXT function.

It’s not obvious from the description, but the asterisk (*) wildcard will only matchtext characters.

It will ignore empty cells, numbers, and errors.

Excel formula: Get first numeric value in a range

Like XLOOKUP, VLOOKUP supports wildcards.

The generic syntax for VLOOKUP looks like this:

For more details, seeHow to use the VLOOKUP function.

Note that VLOOKUP is limited tovertical ranges only.

Excel formula: Get employee information with VLOOKUP

Alternatively, you might use an INDEX and MATCH formula, as explained below.

The location is then provided to INDEX, which returns the final result.

For more details on INDEX with MATCH, see:How to use INDEX and MATCH.

Excel formula: INDEX and MATCH exact match

We then configure XLOOKUP to search this array for the first TRUE value.

For a more complete explanation,see this example.

XLOOKUP supports approximate and exact matching, wildcards (* ?)

Excel XLOOKUP function

you’ve got the option to use INDEX to retrieve individual values, or entire rows and columns.

MATCH supports approximate and exact matching, andwildcards(* ?)

Excel VLOOKUP function

Excel INDEX function

Excel MATCH function

Excel ISTEXT function

Article image

Article image

Article image