ExcelFlux

HLOOKUP function

Looks in the top row of an array and returns the value of the indicated cell.

Lookup and reference

Where can you use it?

Reporting and operations teams. Use functions in this group to retrieve a field from an item, employee or order list, select the right record, or move values into another report.

Scenario in the workbook

Match a quarter in the header row and return the value from the row below.

A worked example from the workbook

RowABC
6InputComparisonGroup
7Q1Q1Q2
8Q21020
9Q1——
Record 1
=HLOOKUP(A7,$B$7:$C$8,2,FALSE)

Expected result10

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=HLOOKUP(A7,$B$7:$C$8,2,FALSE)
Turkish Excel · tr-TR
=YATAYARA(A7;$B$7:$C$8;2;YANLIŞ)

Worked examples

Match a quarter in the header row and return the value from the row below.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B C
6 Input Comparison Group
7 Q1 Q1 Q2
8 Q2 10 20
9 Q1 — —
Case Formula Expected result
Record 1 =HLOOKUP(A7,$B$7:$C$8,2,FALSE) 10
Record 2 =HLOOKUP(A8,$B$7:$C$8,2,FALSE) 20
Record 3 =HLOOKUP(A9,$B$7:$C$8,2,FALSE) 10
Microsoft Excel reference