Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi, I know there are methods to find the closest match to a number that is either greater than or smaller than a reference number but how do you find the closest number regardless of whether its larger or smaller. Any help would be very welcome. Regards Andy. -- andyiain ------------------------------------------------------------------------ andyiain's Profile: http://www.excelforum.com/member.php...fo&userid=8335 View this thread: http://www.excelforum.com/showthread...hreadid=522640 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assuming there are no duplicates in your list,
enter as an array formula =SUMPRODUCT(((ABS(list-target))=MIN(ABS(list-target)))*list) otherwise use this array formula for the first closest match =INDEX(list,MATCH(MIN(ABS(list-target)),(ABS(list-target)),0)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need to select closest match using vlookup if it higher or lower | Excel Discussion (Misc queries) | |||
Find the closest match to a reference number in a row of unsorted | Excel Worksheet Functions | |||
find closest match to a reference number in a row of numbers | Excel Discussion (Misc queries) | |||
Match Closest Results from Data Array | Excel Discussion (Misc queries) | |||
Closest number match help ... | Excel Worksheet Functions |