Looking up values with VLOOKUP
=VLOOKUP(search_key, range, index, [is_sorted])
- search_key: what you're looking for (a value, or a cell containing it).
- range: the table. VLOOKUP always searches the first column of this range.
- index: which column of the range to return, counting from 1 at the left edge of the range (not column A).
- is_sorted: use
FALSEfor an exact match. That's what you want almost every time.
=VLOOKUP("Webcam", A2:C9, 3, FALSE)
Default gotcha: in Google Sheets, is_sorted defaults to TRUE. If you leave it off on unsorted data, you can get a wrong answer silently. Always type FALSE unless you mean it.
Approximate match (TRUE) is useful for brackets such as tax rates or commission tiers. It returns the row for the largest value that is ≤ your key. The first column must be sorted ascending.
VLOOKUP can't look to the left of the search column. For that, use XLOOKUP or INDEX + MATCH.