How to Use VLOOKUP function find Closest Match In Excel

Oct 28, 2020 • edited Oct 31, 2020

How to Use VLOOKUP function find Closest Match In Excel

To find the closest match to a target value in a data column, use the INDEX, MATCH, ABS and the MIN function in Excel. Use the VLOOKUP function in Excel to find an approximate match.

1. The ABS function in Excel returns the absolute value of a number.

Abs Function

Explanation: C3-F2 equals -39. The ABS function removes the minus sign (-) from a negative number, making it positive. The ABS function has no effect on 0 (zero) or positive numbers.

2. To calculate the differences between the target value and the values in the data column, replace C3 with C3:C9.

Array Constant

Explanation: the range (array constant) created by the ABS function is stored in Excel's memory, not in a range. The array constant looks as follows:

{39;14;37;16;22;16;17}

3. To find the closest match, add the MIN function and finish by pressing CTRL + SHIFT + ENTER.

Min Function

Note: the formula bar indicates that this is an array formula by enclosing it in curly braces {}. Do not type these yourself. The array constant is used as an argument for the MIN function, giving a result of 14.

4. All we need is function that finds the position of the value 14 in the array constant. MATCH function to the rescue! Finish by pressing CTRL + SHIFT + ENTER.

Match Function

Explanation: 14 (first argument) found at position 2 in the array constant (second argument). In this example, we use the MATCH function to return an exact match so we set the third argument to 0.

5. Use the INDEX function (two arguments) to return a specific value in a one-dimensional range. In this example, the name at position 2 (second argument) in the range B3:B9 (first argument).

Index Function

6. Finish by pressing CTRL + SHIFT + ENTER.

Closest Match in Excel

#Tutorial#How To#Functions#Lookup & Reference

How To Use t-Test In Excel

How To Add Trendline In Excel