![]() | FREQUENCY function |
Calculates how often values occur within a range of values, and then returns a vertical array of numbers. For example, use FREQUENCY to count the number of test scores that fall within ranges of scores. Because FREQUENCY returns an array, it must be entered as an array formula.
Syntax
FREQUENCY(data_array,bins_array)
Argument | Description | Remarks |
|---|---|---|
data_array | An array of or reference to a set of values for which you want to count frequencies. |
|
bins_array | An array of or reference to intervals into which you want to group the values in data_array. |
|
General remarks
-
FREQUENCY is entered as an array formula after you select a range of adjacent cells into which you want the returned distribution to appear.
-
The number of elements in the returned array is one more than the number of elements in bins_array. The extra element in the returned array returns the count of any values above the highest interval. For example, when counting three ranges of values (intervals) that are entered into three cells, be sure to enter FREQUENCY into four cells for the results. The extra cell returns the number of values in data_array that are greater than the third interval value.
-
FREQUENCY ignores blank cells and text.
-
Formulas that return arrays must be entered as array formulas.
Example
To make the following example easier to understand, you can copy the data to a blank sheet and then enter the function underneath the data. Do not select the row or column headings (1, 2, 3... A, B, C...) when you copy the sample data to a blank sheet.
![]() | Note The formula in the example must be entered as an
array formulaA single formula that performs multiple calculations and then returns either a single result or multiple results. Array formulas act on two or more sets of values, known as array arguments. Each array argument must have the same number of rows and columns. To return multiple results, the formula must be entered into multiple cells. When you enter an array formula by pressing ⌘+RETURN, Excel automatically encloses the array formula between braces ( { } ).. First, type the formula into cell A13 and then press RETURN. The single result is 1. Next, select the range A13:A16, press CONTROL+U, and then press ⌘+RETURN. |
|
|







