View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
JMay
 
Posts: n/a
Default find closest match to a reference number in a row of numbers

Biff:

This is very nice. Can you explain or interpret how the formula is treating or
bringing back the both the match(row) and the match(column) arguments of the
index function?

Confused here...
TIA,,

"Biff" wrote in message
...
Hi!

Try this:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

A5 = lookup_value

=INDEX(A1:J1,MATCH(MIN(ABS(A1:J1-A5)),ABS(A1:J1-A5),0))

Biff

"Nick Krill" <Nick wrote in message
...
How can I find the closest match larger( or smaller) than a reference value
in a row of unsorted data