Calculates and returns a frequency distribution
The FREQUENCY Function[1] is categorized under Excel Statistical functions. The function will calculate and return a frequency distribution. We can use it to get the frequency of values in a dataset.
In financial modeling, FREQUENCY can be useful in calculating the frequency of a value within a range of values. For example, we can use the function to count the number of employees whose IQ falls within a certain range.
=FREQUENCY(data_array, bins_array)
The FREQUENCY function uses the following arguments:
Remember that:
To create a frequency distribution using FREQUENCY:
As a worksheet function, FREQUENCY can be entered as part of a formula in a cell of a worksheet. To understand the uses of the function, let us consider a few examples:
Suppose we are a toy manufacturing company. We can use the FREQUENCY function to count the number of children falling into three different age ranges, which are specified by the bins_array (stored in cells B2-B3 of the spreadsheet).
In the table above, the bins_array values specify the maximum values for the age ranges. Therefore, in this example, the ages are to be split into the ranges 0-4 years, 5-8 years and 9 years+.
We will enter the formula below:
FREQUENCY would be entered as an array formula after we select a range of adjacent cells into which we want the returned distribution to appear.
We used CTRL+SHIFT+ENTER to get curly brackets for array formulas. The results we get are shown below:
A few observations:
We can use the FREQUENCY function to count unique values in a range with some criteria. Suppose we are given a list of employees who participated in an activity, along with the time expended on the activity.
Looking at the data below, we can see that the same employee names appear more than once, so what we want is a count of the unique names.
The formula we will use is:
=SUM(–(FREQUENCY(IF(B2:B10=F1,MATCH(A2:A10,A2:A10,0)),ROW(A2:A10)-ROW(A2)+1)>0))-:
Use CTRL+SHIFT+ENTER to get curly brackets for array formulas. We will get the result below:
Click here to download the sample Excel file
Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:
To master the art of Excel, check out CFI’s Excel Crash Course, which teaches you how to become an Excel power user. Learn the most important formulas, functions, and shortcuts to become confident in your financial analysis.
Launch CFI’s Excel Crash Course now to take your career to the next level and move up the ladder!