Get the frequency of values in a data set
=FREQUENCY(data_array, bins_array)
| Parameter | Description |
|---|---|
data_array |
An array of values for which you want to get frequencies. |
bins_array |
An array of intervals ("bins") for grouping values. |
The FREQUENCY function always returns an array with one more item than bins in the bins_array. This is by design, to catch any values greater than the
=FREQUENCY(data,bins)
In the example shown, the formula in G5:G8 is:
{=FREQUENCY(C5:C14,F5:F8)}
The FREQUENCY function always returns a vertical array of results. To return horizontal results, wrap the FREQUENCY function in the TRANSPOSE function
=TRANSPOSE(FREQUENCY(data,bins))
In Excel 365, which supports dynamic arrays natively, it is not necessary to select multiple cells before entering the FREQUENCY function. In cell G5,
=FREQUENCY(C5:C14,L5:L8)