TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.3K subscribers
Post #1833 9.73K
๐Ÿง‘โ€๐Ÿ’ผ Interviewer: What's the difference between VLOOKUP and HLOOKUP in Excel?

๐Ÿ‘จโ€๐Ÿ’ป Me: VLOOKUP searches vertically down columns (great for column-based data like employee lists), while HLOOKUP searches horizontally across rows (ideal for row-based setups like category headers).

โœ” Key Differences:
โ€“ VLOOKUP: Looks for a value in the first column of a range, returns from the same row in a specified columnโ€”syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). Use for vertical data; e.g., find salary by ID in a table.
โ€“ HLOOKUP: Looks for a value in the first row of a range, returns from the same column in a specified rowโ€”syntax: =HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup]). Use for horizontal data; e.g., pull metrics by month across a header row.

๐Ÿ“Œ Example:
Vertical sales table (IDs in col A, amounts in B): VLOOKUP(ID, A:B, 2, FALSE) gets amount.
Horizontal (months in row 1, sales in row 2): HLOOKUP("Jan", 1:3, 2, FALSE) gets Jan sales.

๐Ÿ’ก VLOOKUP's more common (90% of lookups), but both support exact (FALSE) or approx (TRUE) matchesโ€”switch to XLOOKUP in modern Excel for bidirectional flexibility!

๐Ÿ’ฌ Tap โค๏ธ for more!
  • โค 12
  • ๐Ÿฅฐ 1
More from @excel_analyst
  1. Oct 17, 2026This is a practical example of combining IF, AND, and date functions. ๐Ÿ”Ÿ You receive a mesโ€ฆ
  2. Oct 17, 2026๐Ÿ“Š Excel Interview Questions โ€” Part 3 This part focuses on Power Query, PivotTables, chartโ€ฆ
  3. Oct 17, 2026๐—œ๐—•๐—  ๐—™๐—ฅ๐—˜๐—˜ ๐—ง๐—˜๐—–๐—› ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! ๐ŸŽ“ Explore IBM Cognitive Class and buildโ€ฆ
  4. Oct 16, 2026๐——๐—ฎ๐˜๐—ฎ ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—”๐—œ๐Ÿ˜ Future Ready Data Scienโ€ฆ
  5. Oct 13, 2026๐Ÿ“Š Excel Interview Questions โ€” Part 1 1๏ธโƒฃ What is the difference between VLOOKUP and XLOOKโ€ฆ
  6. Oct 13, 2026๐—ง๐—ข๐—ฃ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ข๐—จ๐—ฅ๐—ฆ๐—˜๐—ฆ ๐—ง๐—ข ๐—•๐—ข๐—ข๐—ฆ๐—ง ๐—ฌ๐—ข๐—จ๐—ฅ ๐—ฆ๐—ž๐—œ๐—Ÿ๐—Ÿ๐—ฆ ๐—œ๐—ก ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ! Explorโ€ฆ
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 โ†’