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

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.