## Use a number range when trying to find the frequency of a number in excel

*Article last updated on May 25, 2010*

**Question:**

Is there a way I can use a data range when trying to find the frequency of a number?

The number ranges are:

larger or equal to 21% and smaller than 22%,

larger or equal to 22% and smaller than 23% and so forth.

Example, 21,24% is larger or equal to 21% and smaller than 22%.

How to calculate how often values (G2:G11) occur within each number range?

**Answer:**

Formula in I2:

=SUMPRODUCT(--(ROUNDDOWN(G2,2)=ROUNDDOWN($G$2:$G$11,2))) + ENTER

**Functions in this article:**

**ROUNDDOWN(**number, num_digits**) **

Rounds a number down to zero.

**SUMPRODUCT(**array1, array2, **)**

Returns the sum of the products of the corresponding ranges or arrays

5 easy ways to VLOOKUP and return multiple values

This post explains how to lookup a value and return multiple values. No array formula required.

Lookup and return multiple values concatenated into one cell

This article demonstrates how to find a value in a column and concatenate corresponding values on the same row. The […]

Question: How do I create a chart that dynamically adds the values, as i type them on the worksheet? Answer: […]

### Leave a Reply

### How to comment

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

<code>Insert your formula here.</code>

**Convert less than and larger than signs**

Use html character entities instead of less than and larger than signs.

< becomes < and > becomes >

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

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

Put your VBA code here.

[/vb]

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

Upload picture to postimage.org or imgur

Use the img tag, like this: <img src="Insert pic link here">

**Contact Oscar**

You can contact me through this contact form