Choose value in a range of data

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
Hello,

Column H3-H30 contain values which are changing continuously.

I need a formula for A1 that will......

find the search column H for a value that is betweem 15-20, if there are more than one in the cloumn then choose the lowest value between 15-20.

Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Unfortunately, the above doesn't restrict to the range 15 to 20. This array formula does (enter using Ctrl+Shift+Enter):

=MIN(IF(H3:H30>=15,IF(H3:H30<=20,H3:H30)))

It will return 0 if there is no value within the specified range).
 
Upvote 0
Thanks Richard.

Now I need a formula in B2 which

row number the lowest value between 15-20, is in
 
Upvote 0
Hi, this formula is working great

=MIN(IF(H3:H30>=15,IF(H3:H30<=20,H3:H30)))

however how can I adapt it so the range is not restricted to 15-20 but instead the range is anything greater than 15.

Thanks
 
Upvote 0
Hi, this formula is working great

=MIN(IF(H3:H30>=15,IF(H3:H30<=20,H3:H30)))

however how can I adapt it so the range is not restricted to 15-20 but instead the range is anything greater than 15.

Thanks

Omit the 2nd condition and change >= to >...

=MIN(IF(H3:H30>15,H3:H30))
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,840
Members
449,193
Latest member
MikeVol

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