FormulaCraft

How to do an approximate-match lookup in Excel and Google Sheets

Excel & Google Sheets
=VLOOKUP(A2,$C$2:$D$5,2,TRUE)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Sort your lookup table in ascending order by the first column — approximate match requires this or it will return wrong results.
  2. 2Use VLOOKUP with the last argument set to TRUE (or 1): =VLOOKUP(A2,$C$2:$D$10,2,TRUE). VLOOKUP scans down and returns the result for the largest key that is still <= the lookup value.
  3. 3Verify the table covers the full range of possible lookup values. Values below the smallest key in the table will return #N/A.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Why does approximate match VLOOKUP return wrong answers?

The most common cause is an unsorted lookup table. Approximate match VLOOKUP requires the first column to be sorted in ascending order. Sort the table and the results will be correct.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: