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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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).
 

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
Thanks Richard.

Now I need a formula in B2 which

row number the lowest value between 15-20, is in
 

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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))
 

Watch MrExcel Video

Forum statistics

Threads
1,133,248
Messages
5,657,601
Members
418,402
Latest member
sgray1

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
Top