xl-central.com, Your Quick Reference to Excel Solutions





navleft
navright
spacer

Lookup the Closest Match

Lookup Closest Match

The following formula returns a value from B2:B10 that is closest to the target value in D2...

=INDEX(B2:B10,MATCH(MIN(ABS(B2:B10-D2)),ABS(B2:B10-D2),0))

Note that this is an array formula, which needs to be confirmed with CONTROL+SHIFT+ENTER for the PC or COMMAND+RETURN for the Mac.

Based on the sample data, the formula returns 25.  Sample Workbook



spacer
Wu Yi Tea
Website Designed by Wu Yi Tea
Design downloaded from free website templates.
Wordpress Themes