Home > Back-end >  How do I lookup an amount closes to the given value
How do I lookup an amount closes to the given value

Time:10-15

Given a decimal number, is there a way to lookup the value in a column that comes closes to amounts array?

enter image description here

CodePudding user response:

Just use simple array formula (Ctrl Shift Enter)

=INDEX($B2:$B6,MATCH(MIN(ABS($A2:$A6-$D$2)),ABS($A2:$A6-$D$2),0))
  • Related