Ravindra BagaleCourses & study guides मराठी Track your progress

4. Lookup Functions

4.3 HLOOKUP

=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]) – same as VLOOKUP but searches the first row and returns from a row below.

Worked example – monthly targets stored horizontally (sheet Targets, A1:E3):

Aug Sep Oct Nov
Pune Target ₹4,00,000 ₹5,50,000 ₹4,80,000 ₹6,00,000
Nashik Target ₹1,50,000 ₹1,90,000 ₹1,60,000 ₹2,20,000

About this data: Teaching sample for a fictional shop “BrightLedger Finance”. Figures and names (e.g. Neha Shah) are made up for this lesson on hlookup.

=HLOOKUP("Sep",Targets!$A$1:$E$3,2,FALSE) → ₹5,50,000 (Pune, Ganeshotsav month). Row 3 would give Nashik's target.

Ravindra Bagale's Tip

HLOOKUP is used less these days – many students think it is the only option for horizontal data. XLOOKUP works both horizontally and vertically, so use XLOOKUP in newer Excel. And keep month data in rows (the unpivot from Module 10), so PivotTables become easy too.

Practice task

Using HLOOKUP, show Nashik's target for the month typed in cell H1. Then do the same with XLOOKUP.

Loading practice tasks...

  1. Pune Target in Sep (Easy): Find Pune's target for "Sep".
  2. Pune Target in Aug (Easy): Find Pune's target for "Aug".
  3. Plants: Nashik in Q2 (Easy): Find the Nashik plant units for "Q2".
  4. Plants: Sambhaji Nagar in Q4 (Easy): Find the Sambhaji Nagar plant units for "Q4".
  5. Nashik Target in Nov (Medium): Find Nashik's target for "Nov".
  6. Month from a cell (Medium): Find Pune's target for the month in G1.
  7. Plants: Sambhaji Nagar in Q1 (Medium): Find the Sambhaji Nagar plant units for "Q1".
  8. Plants: Nashik in Q3 (Medium): Find the Nashik plant units for "Q3".
  9. Total of two months (Hard): Find Pune's Sep target plus Oct target.
  10. Plants: first half (Hard): Find the Nashik plant units for Q1 plus Q2.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Hlookup?
Card 1: What is Hlookup? · Download PNG
Revision card 2: Tiny example — Hlookup
Card 2: Tiny example — Hlookup · Download PNG
Revision card 3: Checklist — Hlookup
Card 3: Checklist — Hlookup · Download PNG