TopicsCheat sheetLessons
Lurndo › Excel › HLOOKUP

Learning Excel: HLOOKUP

Looking up in a row

For rides to the Suburbs or the Docks, Kyle adds a surcharge. The surcharges aren't in a column, but side by side in a row. VLOOKUP has a little brother that looks sideways.

HLOOKUP

HLOOKUP works like VLOOKUP, but turned on its side: it looks in the first row of the table and gives what is below. So the third argument is a row number.

In H2, =HLOOKUP(C2,L9:N10,2,FALSE) looks for the zone Centre in L9:N9 and gives the surcharge from the second row: £0.

H2
fx

=HLOOKUP(C2,L9:N10,2,FALSE)

ABCDEFGHIJKLMNOPQ
1RideCustomerZoneKmWeightPriceAreaSurchargeCustomer nameNameCodeAreaFrom kmPrice
2R01K03Centre2.53£0.00Bloom BakeryK01Manchester0£6.00
3R02K01Suburbs7.212Book NookK02Burnage3£9.00
4R03K05Docks11.425Cygnet CaféK03Manchester6£12.00
5R04K02Centre1.81Dot PrintK04Didsbury10£18.00
6R05K03Suburbs5.58Fork & SpokeK05Withington
7R06K04Docks9.918
8R07K01Centre34
9R08K02Suburbs610ZoneCentreSuburbsDocks
10R09K05Docks1430Surcharge£0.00£2.00£5.00
11R10K06Centre4.22
12
13PositionWeightCentreSuburbsDocksClassMedium
14Light£0.00£1.00£3.00ZoneDocks
15Medium£2.00£3.00£5.00Result
16Heavy£4.00£6.00£8.00
17

Try it yourself

Ride R03 goes to the Docks. Look up the surcharge in H4.

ABCDEFGHIJKLMNOPQ
1RideCustomerZoneKmWeightPriceAreaSurchargeCustomer nameNameCodeAreaFrom kmPrice
2R01K03Centre2.53Bloom BakeryK01Manchester0£6.00
3R02K01Suburbs7.212Book NookK02Burnage3£9.00
4R03K05Docks11.425Cygnet CaféK03Manchester6£12.00
5R04K02Centre1.81Dot PrintK04Didsbury10£18.00
6R05K03Suburbs5.58Fork & SpokeK05Withington
7R06K04Docks9.918
8R07K01Centre34
9R08K02Suburbs610ZoneCentreSuburbsDocks
10R09K05Docks1430Surcharge£0.00£2.00£5.00
11R10K06Centre4.22
12
13PositionWeightCentreSuburbsDocksClassMedium
14Light£0.00£1.00£3.00ZoneDocks
15Medium£2.00£3.00£5.00Result
16Heavy£4.00£6.00£8.00
17
H4

Ready for more?

The full lesson has 6 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousPrice bandsNext →Looking up in any direction

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands