Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Understanding Pivot Tables in Excel
  • How To Create Frequency Distribution in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How to calculate current stock or inventory in Excel
  • Excel Bar Chart

References

  • How to get address of named range in Excel
  • How to use Excel VLOOKUP Function
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Offset in Excel
  • Two-way lookup with VLOOKUP in Excel

Data Validations

  • Excel Data validation must not contain
  • Excel Data validation date in specific year
  • Excel Data validation whole percentage only
  • Excel Data validation only dates between
  • Excel Data validation exists in list

Get first text value with HLOOKUP in Excel

by

This tutorial shows how to Get first text value with HLOOKUP in Excel using the example below;

Formula

=HLOOKUP("*",range,1,FALSE)

Explanation

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:

=HLOOKUP("*",C5:E5,1,0)

How this formula works

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 (*).

Worked Example:   How to use Excel HLOOKUP Function

In the formula shown, HLOOKUP is configured like this:

=HLOOKUP("*",C5:E5,1,0)

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.

Worked Example:   Excel VLOOKUP and HLOOKUP functions Examples

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.

Worked Example:   Excel VLOOKUP and HLOOKUP functions Examples

Ignoring empty strings

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

=HLOOKUP("?*",range,1,0)

Translated: match text with at least one character.

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

Post navigation

Previous Post:

Weighted average in Excel

Next Post:

Win loss points calculation in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF with boolean logic in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • Invoice status with nested if in Excel
  • How to use Excel XOR Function
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Sum race time splits in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • Convert date to text in Excel
  • How to get year from date in Excel
  • Convert Excel time to decimal minutes

Grouping

  • Group times into unequal buckets in Excel
  • How to randomly assign people to groups in Excel
  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Count cells that contain errors in Excel
  • How to fill cell ranges with random text values in Excel
  • How to count total columns in range in Excel
  • How to calculate percent variance in Excel
  • With vs Without Array Formula in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning