Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
INDEX MATCH returns #N/A when the MATCH part cannot find the lookup value in the match_array. MATCH returns #N/A, and INDEX then propagates that error to the cell. The lookup value either does not exist, does not match due to a type or spacing difference, or the arguments point to the wrong range.
=INDEX($E$2:$E$100,MATCH(A2,$D$2:$D$100))=INDEX($E$2:$E$100,MATCH(TRIM(A2),$D$2:$D$100,0))Added the required match_type 0 (exact match) which was omitted, causing approximate-match behaviour on unsorted data. Also added TRIM to handle hidden spaces.
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Got the same error in multiple cells? Upload your whole sheet and the Auditor will flag every #N/A and broken formula at once — free. Pro plans (₹199/$4.99/mo) can apply the verified fixes and download the corrected file in one click.
INDEX MATCH can look in any direction (left, right, up, down), does not break when columns are inserted into the source table, and is generally faster on large datasets.
The position MATCH returns is outside the bounds of the array given to INDEX. Make sure both arrays start and end on the same rows. For example, if MATCH searches D2:D100, INDEX must use a range that also starts at row 2.
In Excel 365 and Google Sheets you can pass an array of column numbers: =INDEX($E$2:$G$100,MATCH(A2,$D$2:$D$100,0),{1,2,3}). In older Excel, you need separate INDEX MATCH formulas for each column.
A flexible two-function lookup that can return values to the left of the lookup column.
How-toUse INDEX with two MATCH functions to look up a value at the intersection of a matching row and a matching column.
How-toCombine INDEX and MATCH with multiplication of two criteria arrays to perform a lookup that matches on two conditions simultaneously.
How-toCombine INDEX with two MATCH calls — one for the row and one for the column — to look up a value at the intersection of a row and column header.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: