मुख्य घटकावर जा
Lookup & ReferenceIntermediate LevelIntermediate Excel (Lookups & Business Analytics)

How to Use HLOOKUP in Excel

The horizontal twin of VLOOKUP: searches across the top row of a table and returns a value from a row below it.

Direct Answer (Quick Summary)

What is HLOOKUP in Microsoft Excel?

HLOOKUP works like VLOOKUP rotated 90 degrees. It scans the first row of a table for your value, then drops down a fixed number of rows to return the answer. It suits data laid out with periods or categories across the top, such as a monthly P&L or a rate card.

Pro Tip: If you control the layout, transpose the table and use XLOOKUP instead. HLOOKUP shares VLOOKUP's weakness: a hardcoded row number that breaks the moment someone inserts a row.

Formula Syntax

=HLOOKUP(lookup_value, table_array, row_index_num, range_lookup)

Arguments Breakdown

ArgumentRequirementPurpose & Details
lookup_valueRequiredThe value to find in the first row of the table.
table_arrayRequiredThe table to search. The first row is scanned for the lookup value.
row_index_numRequiredWhich row of the table to return, counting the first row as 1.
range_lookupOptionalFALSE or 0 for exact match, TRUE or 1 for approximate match on sorted data. Always pass FALSE for lookups.

When to Use HLOOKUP (Real-World Business Scenarios)

  • 1

    Pulling a value from a rate card where months or product tiers run across the top row.

  • 2

    Reading a single figure from a financial statement laid out horizontally.

  • 3

    Legacy workbooks that already use horizontal layouts and cannot be restructured.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

MetricJanFebMar
Revenue450005200038000
Cost300003100029000
Profit15000210009000
Applied Formula:Result: 21000
=HLOOKUP("Feb",B1:D3,3,FALSE)

How it works: Finds 'Feb' in the header row, then returns the value from row 3 of that column, which is February profit.

Common Errors & How to Fix Them

#N/A

Why it happens: range_lookup was omitted, so Excel used approximate matching and could not find the value.

Fix: Pass FALSE as the fourth argument: =HLOOKUP("Feb",B1:D3,3,FALSE).

#REF!

Why it happens: row_index_num is larger than the number of rows in table_array.

Fix: Count the rows in the table including the header and use a number within that range.

Interactive Formula Lab

Try HLOOKUP Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (HLOOKUP)

What does the HLOOKUP formula do in Excel?

HLOOKUP works like VLOOKUP rotated 90 degrees. It scans the first row of a table for your value, then drops down a fixed number of rows to return the answer. It suits data laid out with periods or categories across the top, such as a monthly P&L or a rate card.

What is the syntax for HLOOKUP?
=HLOOKUP(lookup_value, table_array, row_index_num, range_lookup)
What are common mistakes when using HLOOKUP?

#N/A: range_lookup was omitted, so Excel used approximate matching and could not find the value. (Pass FALSE as the fourth argument: =HLOOKUP("Feb",B1:D3,3,FALSE).) #REF!: row_index_num is larger than the number of rows in table_array. (Count the rows in the table including the header and use a number within that range.)

Keep building your formula toolkit with these lookup & reference functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master HLOOKUP in Intermediate Excel

Learn HLOOKUP along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary