VLOOKUP vs HLOOKUP: Which One Fits Your Table
One of your tables lists products down the rows; another lays months across the columns with sales underneath. You need to pull a value from each, and V-something or H-something is the question.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
The letters say it all: VLOOKUP searches Vertically down the first column of a table and returns from a column you count rightward; HLOOKUP searches Horizontally across the first row and returns from a row you count downward. They're the same function rotated 90 degrees — same exact-match FALSE argument, same counting logic, same #N/A on a miss. Since most real data is arranged vertically (one record per row), VLOOKUP covers the vast majority of lookups; HLOOKUP exists for the layouts where labels run across the top, like months in a budget or quarters in a forecast. If you're on Excel 2021/365 or Google Sheets, XLOOKUP replaces both — it doesn't care which direction the data runs — but the V/H pair still matters in older files.
When to use it
VLOOKUP for the everyday case: price lists, employee rosters, order logs with one record per row. HLOOKUP for wide layouts — pulling February's number from a budget where months run across the top.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveDownload the proof sheet (.xlsx)Last reviewed 2026-07-09