How To Get A SMALL Array That Only Pulls Values Betwen Two #'s

aedctalk

Board Regular
Joined
Oct 9, 2010
Messages
156
=SMALL((F42:AS42,F112:AS112),1) )

Is there a way to modify this above code to only show a value that is greater than -50 and under +50

If so how exactly would i do this? Thank you SOOO MUCH! :)

completely stuck :(

If the value isnt within this range then i dont want it to be considered... thanks :P
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
=SMALL((F42:AS42,F112:AS112),1) )

Is there a way to modify this above code

This not code. Rather a formula, probably not well-formed, unless both F42:AS42 and F112:AS112 are numeric...

to only show a value that is greater than -50 and under +50

If so how exactly would i do this? Thank you SOOO MUCH! :)

completely stuck :(

If the value isnt within this range then i dont want it to be considered... thanks :P

Work with small samples and desired results when posting questions... How about posting just:

F42:K42 and F112:K112

as sample along with the desired result?
 
Upvote 0
=SMALL((F42:AS42,F112:AS112),1) )

Is there a way to modify this above code to only show a value that is greater than -50 and under +50

If so how exactly would i do this? Thank you SOOO MUCH! :)

completely stuck :(

If the value isnt within this range then i dont want it to be considered... thanks :P
I'm assuming you mean the range greater than -50 and under +50 literally. Typically, when folks want a range "between" values what they really mean is:

>= the lower boundary and <= the upper boundary.

Not very elegant...

Use an intermediate cell to get a count of numbers that fall within the range.

A1:

=SUM(COUNTIF(F42:AS42,">-50")-COUNTIF(F42:AS42,">=50"),COUNTIF(F112:AS112,">-50")-COUNTIF(F112:AS112,">=50"))

Then test that cell to see if it's >0. If so then calculate the min value.

B1:

=IF(A1>0,SMALL((F42:AS42,F112:AS112),COUNTIF(F42:AS42,"<=-50")+COUNTIF(F112:AS112,"<=-50")+1),"")
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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