✍️ Excel lookup examples

HLOOKUP Examples in Excel

Learn HLOOKUP examples for horizontal lookup tables, monthly headers and simple cross-row lookups.

Updated 2026-06-125 practical examplesCopy-ready

What it does

HLOOKUP searches across the first row of a table and returns a value from a lower row.

Syntax or pattern

=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

5 practical examples

1

Find a value by month header

Look across month names and return a sales value.

=HLOOKUP(B1, $B$1:$M$5, 3, FALSE)

This works when months are arranged horizontally.

2

Return a target by quarter

Find the target for the selected quarter.

=HLOOKUP(A2, Targets, 2, FALSE)

Useful for compact planning sheets.

3

Use HLOOKUP with IFERROR

Hide errors when the header is missing.

=IFERROR(HLOOKUP(B1, $B$1:$M$5, 3, FALSE), "Missing month")

A friendly message makes the sheet easier to understand.

4

Approximate horizontal lookup

Find a grade or band from horizontal breakpoints.

=HLOOKUP(A2, GradeTable, 2, TRUE)

Approximate mode needs sorted breakpoints.

5

Return a cost by product header

Look up a product across columns and return the cost row.

=HLOOKUP(D2, ProductMatrix, 4, FALSE)

Best for small horizontal matrices.

Common mistakes to avoid

  • Using HLOOKUP when the table should be vertical.
  • Forgetting that the lookup row must be the top row.
  • Using approximate matching accidentally.

Related Excel examples

FAQ

Is HLOOKUP still useful?

Sometimes, but XLOOKUP often replaces it in modern workbooks.

💡 Useful resources

Here are some ideas for you

Optional resources that may help if you are learning formulas, building reports, or working in spreadsheets often.

  • 📘
    Excel formula books

    Practice formulas with structured examples you can keep beside your desk.

    See ideas
  • ⌨️
    Excel shortcut guides

    Build speed with keyboard shortcuts for selection, formatting and navigation.

    See ideas
  • 🔢
    Numeric keypads

    Helpful if you enter many numbers on a laptop or compact keyboard.

    See ideas
  • 🖥️
    External monitors

    Useful for viewing large worksheets, formulas and reference tables side by side.

    See ideas
  • 📒
    Desk notebooks

    Sketch formula logic, report ideas and table structures before building.

    See ideas
  • 💻
    Laptop stands

    Make long spreadsheet sessions more comfortable and ergonomic.

    See ideas

Some links in this section may be affiliate links. Choose only what is useful for your own work.