Advanced Excel for Data AnalystsLesson 23 of 49
Lesson 23 of 49

Horizontal Lookups & Tiered Commission Slabs: HLOOKUP

Overview & Learning Objectives

While VLOOKUP searches vertically in columns, HLOOKUP searches horizontally across rows. It is ideal for horizontal tables, such as tiered discount slabs where buying more boxes unlocks higher wholesale discounts.

  • Search across horizontal tables using HLOOKUP.
  • Use Approximate Match (TRUE or 1) for tiered slabs (0kg, 5kg, 10kg, 25kg).
  • Understand why tier boundary tables must always be sorted in ascending order.

Industry Standard

Standard: Tiered pricing slabs, tax brackets, and bulk shipping rate calculators frequently use horizontal reference tables.

Real-World Example: Grand Sweets Bulk Purchase Volume Discounts

At Grand Sweets, customers buying sweets for festivals get volume discounts: 0 to 4 kg gets 0%, 5 to 9 kg gets 5%, 10 to 24 kg gets 10%, and 25+ kg gets 15%. HLOOKUP with Approximate Match (TRUE) automatically places any purchase into the right discount tier.

Tier MetricTier 1 (0 kg)Tier 2 (5 kg)Tier 3 (10 kg)Tier 4 (25 kg)
Min Order Kgs (Row 1)051025
Discount Rate (Row 2)0%5%10%15%
Free Gift (Row 3)NoneSample BoxDiya PackSilver Coin

HLOOKUP Function Syntax

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

Parameters Breakdown

  • lookup_value: The number you are checking (e.g. Customer Order Weight = 12 kg).
  • table_array: The horizontal table range ($B$1:$E$3).
  • row_index_num: The row number to pull data from (Row 2 for Discount Rate).
  • [range_lookup]: TRUE (or 1) for Approximate Match. Essential for tiered number brackets!

Sample Walkthrough (Q&A):

Question: What discount does a customer buying 12 kg get from our tiered table?

Formula / Action: `=HLOOKUP(12, $B$1:$E$3, 2, TRUE)`

Result: 10%

Explanation: With TRUE, Excel scans across Row 1: 12 is >= 10 but < 25, so it locks onto Tier 3 (10%)!

Common Mistakes & Limitations

  • Not sorting tier slabs in ascending order (0 -> 5 -> 10 -> 25). If unsorted, approximate match gives erratic results.
  • Using FALSE for number tiers (FALSE requires an exact match, so buying 12 kg would fail with `#N/A`).

Keyboard Shortcuts

ActionWindowsMac
Lock Range ($)F4Cmd + T
Format as PercentageCtrl + Shift + %Ctrl + Shift + %

Pro Tips & Modern Alternatives

  • Use `=XLOOKUP(12, B1:E1, B2:E2, , -1)` with match_mode -1 (exact match or next smaller item). It works horizontally and vertically without sorting restrictions.
  • Use vertical tables with VLOOKUP or XLOOKUP for easier reading.