TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.1K subscribers
Post #2239 2.98K
๐Ÿ“Š Excel Basics #20 โ€“ HLOOKUP() Function

The HLOOKUP() function searches for a value in the first row of a table and returns a value from a specified row in the same column.

Note: HLOOKUP() is less commonly used than VLOOKUP(), but it's still useful when your data is organized horizontally.

๐Ÿ“Œ What is the HLOOKUP() Function?

HLOOKUP stands for Horizontal Lookup.

It searches horizontally across the first row and returns a value from the specified row.

Syntax:

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

๐Ÿ“Œ Arguments Explained

โ€ข lookup_value โ†’ The value you want to search for

โ€ข table_array โ†’ The data table

โ€ข row_index_num โ†’ The row number to return the value from

โ€ข range_lookup

โ€ข FALSE โ†’ Exact match (recommended)

โ€ข TRUE โ†’ Approximate match

๐Ÿ“Œ Example

Jan Feb Mar Apr

Sales 50000 60000 55000 70000

Profit 8000 10000 9000 12000

To find the Profit for March:

Formula:

=HLOOKUP("Mar",A1:E3,3,FALSE)

Result: 9000

๐Ÿ“Œ Using a Cell Reference

If cell G2 contains the month name:

=HLOOKUP(G2,A1:E3,3,FALSE)

Changing the month in G2 automatically returns the corresponding profit.

๐Ÿ“Œ Common Errors

โŒ Searching in a row other than the first row

โŒ Using an incorrect row index number

โŒ Forgetting to use FALSE for an exact match

โŒ Getting #N/A when the lookup value doesn't exist

Handle errors using:

=IFERROR(HLOOKUP(G2,A1:E3,3,FALSE),"Not Found")

๐Ÿ“Œ Limitations of HLOOKUP()

โ€ข Searches only in the first row

โ€ข Works only from top to bottom

โ€ข Less flexible than INDEX()/MATCH() or XLOOKUP()

โ€ข Rarely used because most Excel datasets are arranged vertically

๐Ÿ“Œ Real-World Uses

โ€ข Retrieve monthly sales or profit from summary tables

โ€ข Find quarterly performance

โ€ข Fetch values from horizontally structured reports

โ€ข Build financial summary dashboards

โœ… Best Practices

โ€ข Use FALSE for exact matches

โ€ข Ensure the lookup value is in the first row

โ€ข Combine HLOOKUP() with IFERROR() for user-friendly reports

โ€ข Prefer XLOOKUP() for modern Excel workbooks, as it supports both vertical and horizontal lookups

Although HLOOKUP() is less common today, understanding it will help you work with legacy Excel files and prepare for interviews.

Double Tap โค๏ธ For More
  • โค 10
  • ๐Ÿ‘ 1
More from @excel_analyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 5 This part focuses on Tables, Filters & Data Analysis shortcutsโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 3 This part focuses on Formatting Shortcuts โ€” quickly format celโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’