Over 1.8 million professionals use CFI to learn accounting, financial analysis, modeling and more. Start with a free account to explore 20+ always-free courses and hundreds of finance templates and cheat sheets.
The FREQUENCY Function 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.
The FREQUENCY function uses the following arguments:
Data_arrays (It is a required argument) – This is an array or reference to a set of values for which you want to count frequencies.
Bins_array (It is a required argument) – This is an array of intervals (“bins”) for grouping values.
If data_array contains no values, FREQUENCY returns an array of zeros.
If bins_array contains no values, FREQUENCY returns the number of elements in data_array.
To create a frequency distribution using FREQUENCY:
We need to enter numbers that represent the bins we want to group values into.
Make a selection the same size as the range that contains bins, or greater by one, if we want to include the extra item.
Enter the FREQUENCY function as an array formula using Control+Shift+Enter.
How to use the FREQUENCY Function in Excel?
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:
FREQUENCY function will always return an array with one more item than the bins_array. This is done by design to catch any values greater than the largest interval in the bins_array.
Each bin shows a count of values up to and including bin value, excluding values already accounted for.
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.
Use CTRL+SHIFT+ENTER to get curly brackets for array formulas. We will get the result below:
A few notes about the FREQUENCY function:
The function ignores blank cells.
#N/A error – Occurs if the array formula is entered into a range of cells that is too large, i.e., the #N/A error appears in all cells after the n’th cell (where n is the length of the bins_array + 1).
Formulas that return arrays must be entered as array formulas.
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:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Already have a Self-Study or Full-Immersion membership? Log in
Access Exclusive Templates
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.