## How to filter numbers inside (and outside) number ranges in excel

*Article updated on July 29, 2017*

### How to filter numbers inside ranges in column E and F

**Array formula in A2:**

Copy cell A2 and paste it down as far a sneeded.

**Alternative array formula in A2:**

Copy cell A2 and paste it down as far a sneeded.

### How to filter numbers outside ranges in column E and F

**Array formula in B2:**

Copy cell B2 and paste it down as far a sneeded.

**Alternative array formula in B2:**

Copy cell B2 and paste it down as far a sneeded.

**Named ranges**

Start (E2:E5)

End (F2:F5)

### Download excel template

numbers inside range.xls

(Excel 97-2003 Workbook *.xls)

**Functions in this article:**

**IF(**logical_test;[value_if:true];[value_if_false]**)
**Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE

**SMALL(**array,k**)** returns the k-th smallest row number in this data set.

**ROW(**reference**)** returns the rownumber of a reference

**FREQUENCY**(data_array, bins_array)*
*Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array

*.*

**ROWS(**array**)** returns the number of rows in a reference or an array

**COLUMN(**reference**) **returns the column number of a reference

Count how many numbers between a specific value occurring multiple times

jeyner asks: I need to count in a list the interval between the same value. Example list, 1-2-3-1-4-5-1-6-7-8-9-7-8-1 So the […]Extract unique distinct values from a filtered table [udf and array formula]

Robert Jr asks: Oscar, I am using the VBA code & FilterUniqueSort array to generate unique lists that drive Selection […]### One Response to “How to filter numbers inside (and outside) number ranges in excel”

### Leave a Reply

**How to add a formula to your comment:**

<code>your formula</code>

Remember to convert less than and larger than signs to html character entities before you post your comment.

**How to add VBA code to your comment:**

[vb 1="vbnet" language=","]

VBA code

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org

Add picture link to comment.

**Contact Oscar**

You can contact me through this webpage

Hello,

Thanks for this helpful information on excel formulas.

I need help with counting the number of cells that fall outside of two numbers, so I need to get the count of numbers that are less than -0.1 and greater than 0.1. I have been searching online for a long time, but everyone talks about counting the values that fall with in two numbers, but no discussion on how to count the numbers that are outside two numbers. I have tried COUNTIFS, but it won't work, it will only work to count numbers with in two numbers.

Any help is appreciated. Thank you!