How to Find the Closest Value in Excel with INDEX MATCH
In Excel, you may sometimes need to find the value that is closest to a target rather than looking for an exact match. For example, you may want to find the employee whose score is nearest to a target score, the product price closest to a budget, or the measurement closest to a target value.
INDEX and MATCH to find a closest match in Kutools for Excel's Formula Helper Plus provides a guided way to perform this lookup. Specify the range containing the values to return, the numeric range to compare, and the target value, and Formula Helper Plus generates the required INDEX, MATCH, MIN, and ABS formula for you.

Advantages of INDEX and MATCH to find a closest match
How to find the closest match with INDEX and MATCH
- Find the value corresponding to the closest match with Formula Helper Plus
- Understand the three formula arguments
- How the generated INDEX, MATCH, MIN, and ABS formula works
How the closest match is determined
What happens when two values are equally close
Advantages of INDEX and MATCH to find a closest match
INDEX and MATCH to find a closest match is useful when an exact lookup value may not exist and you need to identify the nearest available value and return its corresponding result.
Find the nearest value without an exact match
Compare a target with a range of numbers and identify the value with the smallest difference.
Find the closest value above or below the target
The formula compares absolute differences, so the closest match can be either greater than or less than the target value.
Return the corresponding value
Instead of returning only the closest number, retrieve a related value such as an employee name, product, or other corresponding record.
Avoid building an array formula manually
Formula Helper Plus combines INDEX, MATCH, MIN, and ABS after you specify the required ranges and target value.
How to find the closest match with INDEX and MATCH
INDEX and MATCH to find a closest match compares a target value with a numeric range, identifies the value with the smallest absolute difference, and returns the related value from another range. This section shows how to configure the formula and understand how the closest match is determined.
In the example below, employee performance scores are compared with a Target Score of 85, and the employee whose score is closest to the target is returned.
Find the value corresponding to the closest match with Formula Helper Plus
Use this method when you want to find the nearest number in one range and return the corresponding value from another range.
1. Prepare the lookup data and target value. In this example, employee names are stored in A5:A14, performance scores are stored in B5:B14, and the target score 85 is entered in D5. Select E5, where you want the corresponding employee name to appear.

2. Click Kutools > Formula Helper > Formula Helper Plus.

3. In Formula Helper Plus, select the Online tab. Under Category, click Lookup, then select INDEX and MATCH to find a closest match.

Tip: You can also enter keywords such as closest match or INDEX MATCH in the search box to quickly locate the formula.
4. Specify the three arguments. Select A5:A14 as Array, B5:B14 as Lookup_array, and D5 as Lookup_value.

5. Click OK or Apply to insert the formula into E5.
Result: Formula Helper Plus identifies the score with the smallest difference from the target score and returns the corresponding employee name in cell E5.

Understand the three formula arguments
The formula uses three arguments to determine which numeric values to compare and which corresponding value to return.
| Argument | Purpose | Example |
| Array | The range containing the values you want to return. | A5:A14 — Employee |
| Lookup_array | The numeric range in which Excel searches for the value closest to the target. | B5:B14 — Score |
| Lookup_value | The target value used to determine the closest match. | D5 — 85 |
Tip:Array and Lookup_array should cover corresponding records and contain the same number of rows. Each value in Lookup_array should correspond to the value in Array on the same row.
How the generated INDEX, MATCH, MIN, and ABS formula works
The generic formula used by INDEX and MATCH to find a closest match is:
=INDEX(#Array#,MATCH(MIN(ABS(#Lookup_array#-#Lookup_value#)),ABS(#Lookup_array#-#Lookup_value#),0))
With the cell references used in this example, the formula follows this structure:
=INDEX(A5:A14,MATCH(MIN(ABS(B5:B14-D5)),ABS(B5:B14-D5),0))
The formula works in four main stages:
- ABS(B5:B14-D5) calculates the absolute difference between every performance score and the target score.
- MIN identifies the smallest difference in that array, which represents the score nearest to the target.
- MATCH finds the position of that minimum difference.
- INDEX uses the matching position to return the corresponding employee name from A5:A14.
In this example, 87 has the smallest absolute difference from the target score of 85, with a difference of 2. It is the seventh value in B5:B14, so MATCH returns position 7. INDEX then returns the seventh employee in A5:A14, which is Sophia Taylor.

How the closest match is determined
The formula determines the closest match by calculating the absolute difference between every value in Lookup_array and the target value. Using an absolute difference means it measures distance regardless of whether a value is above or below the target.
| Score | Target Score | Absolute Difference |
| 78 | 85 | 7 |
| 82 | 85 | 3 |
| 87 | 85 | 2 |
| 91 | 85 | 6 |
Key point: The closest value can be either above or below the target. The formula returns whichever value has the smallest absolute difference.
What happens when two values are equally close
Sometimes two values can be the same distance from the target. For example, if the target is 85, both 83 and 87 are two points away.
| Employee | Score | Difference from 85 |
| Ethan Brown | 83 | 2 |
| Olivia Johnson | 87 | 2 |
When this happens, the formula returns the first equally close match that appears in the lookup range. This is because MATCH returns the first occurrence of the minimum difference.
Tips for accurate closest-match lookups
Keep the following points in mind when using the formula to find the nearest value.
- Keep Array and Lookup_array aligned: Both ranges should contain corresponding records and normally have the same number of rows.
- Use numeric values in Lookup_array: The formula calculates differences between the lookup values and the target, so the lookup range should contain valid numbers.
- Avoid unexpected blanks, text, or errors: Non-numeric or error values in the lookup range can interfere with the difference calculation.
- The lookup range does not need to be sorted: The formula compares the absolute difference for every value, so ascending or descending order is not required.
- Remember how ties are handled: If two values are equally close, the first one in the lookup range is returned.
- Use the correct array-entry method for your Excel version: Older versions may require Ctrl + Shift + Enter, while Excel 365, Excel 2021, and newer versions generally accept the formula with Enter.
Practical use cases
This formula is useful whenever you need to find the nearest available numeric value and return related information from the same record.
Find the employee whose score is closest to a target
Compare performance, test, or assessment scores with a target score and return the employee associated with the nearest result.
Find the product price closest to a budget
Compare product prices with a spending limit and return the product whose price is nearest to the target budget.
Find a measurement closest to a target
Use the formula with measurements such as temperature, weight, distance, or other numeric readings to identify the record nearest to a desired value.
Find the available quantity closest to a requirement
Compare inventory or package quantities with a required amount and return the option that most closely matches the requested quantity.
About Formula Helper Plus
Formula Helper Plus in Kutools for Excel provides a collection of practical formulas through a guided interface, helping you find, understand, and insert formulas without having to remember their complete syntax.
The interface includes Local and Online formula libraries. Formulas are organized by task, and you can browse categories or use the search box to quickly locate a formula by name or purpose. INDEX and MATCH to find a closest match is available in the Online library under the Lookup category.
After selecting a formula, its argument boxes appear at the top of the window, while the right-hand information pane displays the formula description, generic formula, argument explanations, and other guidance to help you configure the formula correctly.

🔤 Display controls
Use the display controls at the bottom of the Formula Helper Plus window to adjust the text size in the right-hand information pane for easier reading. These controls are available in both the Local and Online libraries.
Increase font size: Enlarge the formula description, generic formula, arguments, and other information displayed in the right-hand pane.
Decrease font size: Reduce the text size in the right-hand pane when you want to view more information at once.
FAQ
What does INDEX and MATCH to find a closest match do?
It identifies the numeric value in a lookup range that is nearest to a target and returns the corresponding value from another range.
Does the lookup value need to exist exactly in the lookup range?
No. The formula is specifically designed to find the nearest available value when an exact match does not exist.
Can the closest value be higher or lower than the target?
Yes. The formula compares absolute differences, so it can return a value above or below the target depending on which one is closer.
What happens if two values are equally close to the target?
The formula returns the first equally close value that appears in Lookup_array.
Does Lookup_array need to be sorted?
No. The values can appear in any order because the formula calculates the absolute difference between every lookup value and the target.
Do Array and Lookup_array need to be the same size?
Yes. They should contain corresponding records and normally have the same number of rows so that each lookup value is aligned with the correct return value.
Why might older Excel versions require Ctrl + Shift + Enter?
The formula performs an array calculation across the lookup range. Older Excel versions may therefore require the formula to be confirmed with Ctrl + Shift + Enter. Excel 365, Excel 2021, and newer versions generally allow you to press Enter instead.
Can I find the closest match to a calculated value such as an average?
Yes. The target can also be based on a calculated value. For example, a closest-match formula can compare the lookup range with an average rather than a fixed number.
Where can I find INDEX and MATCH to find a closest match?
Click Kutools > Formula Helper > Formula Helper Plus, select the Online tab, and choose Lookup > INDEX and MATCH to find a closest match. You can also use the search box to locate the formula by keyword.
Productivity Tools Recommended
Office Tab: Use handy tabs in Microsoft Office, just like Chrome, Firefox, and the new Edge browser. Easily switch between documents with tabs — no more cluttered windows. Know more...
Kutools for Outlook: Kutools for Outlook offers 100+ powerful features for Microsoft Outlook 2010–2024 (and later versions), as well as Microsoft 365, helping you simplify email management and boost productivity. Know more...
Kutools for Excel
Kutools for Excel offers 300+ advanced features to streamline your work in Excel 2010 – 2024 and Microsoft 365. The feature above is just one of many time-saving tools included.


Table of Contents
- Advantages of INDEX and MATCH to find a closest match
- How to find the closest match with INDEX and MATCH
- Find the value corresponding to the closest match with Formula Helper Plus
- Understand the three formula arguments
- How the generated INDEX, MATCH, MIN, and ABS formula works
- How the closest match is determined
- What happens when two values are equally close
- Tips for accurate closest-match lookups
- Practical use cases
- About Formula Helper Plus
- FAQ
- The Best Office Productivity Tools
Kutools for Excel
Brings 300+ advanced features to Excel
- 🧩 Overview
- 📥 Free Download
- 🎁 30-Day Free Trial available
Increase font size: Enlarge the formula description, generic formula, arguments, and other information displayed in the right-hand pane.
Decrease font size: Reduce the text size in the right-hand pane when you want to view more information at once.