TGViewer
Data Analysis Books | Python | SQL | Excel | Artificial Intelligence | Power BI | Tableau | AI Resources Data Analysis Books | Python | SQL | Excel | Artificial Intelligence | Power BI | Tableau | AI Resources @learndataanalysis · 53.3K subscribers
Post #2143 5.93K
🧑‍💼 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!
  • ❤ 13
  • 👍 2
  • 😁 1
More from @learndataanalysis
  1. Sep 23, 2026✅ Types of Machine Learning Algorithms 🤖📊 1️⃣ Supervised Learning Supervised learning me…
  2. Sep 19, 2026🚀 GigaChat 3.5 Reasoning — a new open-source LLM that thinks before it answers. It breaks…
  3. Sep 16, 2026🟠 Part 12 — Dashboard Development • Dashboard layout, Tiled vs Floating, Containers, Devi…
  4. Sep 16, 2026📊 Tableau Learning Roadmap 2026 If you're starting Tableau from scratch, follow this orde…
  5. Sep 6, 2026UNPOPULAR OPINION: Excel is still relevant for data analysis. I am often asked by junior d…
  6. Aug 28, 2026✅ Power BI Basics 📊🚀 👉 Power BI is one of the most popular Business Intelligence BI too…
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 →