VLOOKUP - exact or approximate match

john lilleystone • January 2, 2019

Use VLOOKUP's 4th argument to find either an exact or approximate match.

VLOOKUP is one of Excel's most popular functions when working with lists. Typically most VLOOKUP formulas uses a FALSE statement as the 4th argument. But do you know that there’s a TRUE way too and what it’s used for?

As a reminder, there are the 4 arguments that make up a VLOOKUP formula – 1 the cell to lookup, 2 the range to look up, 3 the column number of the value to return, 4 exact or approximate match i.e. =VLOOKUP(A2,E:F,2, FALSE )

It’s the last and 4th argument which we’re going to take a look at. FALSE means, find an exact match and if you don’t return an error (#N/A). Like this;

The highlighted cell has returned an error because it cannot find an exact match in the lookup range.

Here’s an example of where we’d use TRUE instead. Consider the below which has tables of sales and commission rates based on thresholds;

I want to lookup the value of Sales in the first table and return the appropriate commission percentage based on the thresholds in the second table.

So the formula in cell C2 is =VLOOKUP(B2,G1:H7,2, TRUE ). The value of Sales in B2 is 20,139 so it needs to do an approximate match which equates to 25% commission (good rates of commission at this company!). If we’d used FALSE, then the sales value would have to match exactly to that in the other table to return a value (i.e. 20,000).

By John Lilleystone January 21, 2021
Remove whitespaces in Excel using the TRIM function.
excel iferror error alternate result
By john lilleystone April 11, 2020
Replace ugly Excel errors returned by a formula with something more appropriate and pleasing to the eye.
excel transpose
By john lilleystone March 14, 2020
Transpose and paste a vertical column of data horizontally into a row
edit hyperlink
By john lilleystone March 14, 2020
Edit a hyperlink in Outlook 2016
emoji symbol
By john lilleystone March 14, 2020
insert an emoji or symbol into your application
sparklines
By john lilleystone March 1, 2020
Add Sparklines to Excel tables to show trends in the data
random numbers randbetween
By john lilleystone March 1, 2020
Use the RANDBETWEEN function in Excel to randomly generate numbers between a specified upper and lower threshold.
DATEADD MSQUERY
By john lilleystone March 1, 2020
Don't waste time manually editing queries to move the date period on one month. This blog explains how to use DATEADD to dynamically shift the dates on one month on each refresh
By john lilleystone February 29, 2020
Import text files into Excel and use the Text to Columns wizard to separate the data into columns
By john lilleystone February 26, 2020
Return the last non-zero value in a row in Excel
Show More