How To Find the Nearest number form a List of numbers ordered Asc

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
378
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
hi iin column A
A1=600
A2=700
A3=900
A4=950
A5=1600
A6=1802
A7=1905

in cell: B1 i have: 890 then in C1 i wait the result: 900
other sample:
in cell: B1 i have: 15 then in C1 i wait the result: 600
other sample:
in cell: B1 i have: 1450 then in C1 i wait the result: 1600

how to do this?

thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
sorry the correct results expected was:

in cell: B1 i have: 890 then in C1 i wait the result: 700
other sample:
in cell: B1 i have: 15 then in C1 i wait the result: ERROR or NA
other sample:
in cell: B1 i have: 1450 then in C1 i wait the result: 950

how to do this?
 
Upvote 0
How about
Excel Formula:
=INDEX($A$1:$A$7,MATCH(B1,$A$1:$A$7,1))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top