Quick, clean, and to the point

Get first text value with HLOOKUP

Excel formula: Get first text value with HLOOKUP
Generic formula 

To lookup and retrieve the first text value across a range of columns, you can use the HLOOKUP function with a wildcard. In the example shown, the formula in F5 is:


Sometimes, you may want to check a range of several columns and extract the first text value found. You can do this with the HLOOKUP function and the asterisk wildcard character (*).

In the formula shown, HLOOKUP is configured like this:


The lookup value is "*", a wildcard that matches one or more text values.

The table array C5:E5, entered as a relative references so that it changes as the formula is copied down column F.

The row index number is 1, since the range contains only one row.

The range lookup argument is set to zero (false) to force exact match. This is required when using wildcards with VLOOKUP or HLOOKUP.

In each row, HLOOKUP finds and returns the first text value found in columns C through E in each row.

Ignoring empty strings

To ignore empty strings generated by other formulas, try adjusting wildcards as follows:


Translated: match text with at least one character.

Note: this formula won't work for numeric values since the asterisk wildcard matches only text.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.