Not that simple!!!
An array formula, copied down:
Formula:
=IFERROR(INDEX($F$2:$F$1286,MATCH(MIN(IF($C$2:$C$1286=AJ2,IF($D$2:$D$1286>=0.7*AK2,IF($D$2:$D$1286<=1.3*AK2,ABS($E$2:$E$1286-AL2))))),ABS($E$2:$E$1286-AL2),0)),"")
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
If copying the formula from the post (rather than from the attached sheet) remember to change , into ; to meet your regional settings.
Bookmarks