How to Create Frequency Distribution in Excel?
Frequency distribution in excel is a calculation of the rate of a change happening over a period of time in the data; there are two methods to find the frequency distribution; first, we need to categorize our data in data sets, and then we can use the array formula frequency function or in the data analysis tab we can use the histogram tool to calculate the frequency distribution. There are two methods to do the same –
- Frequency Distribution in Excel using Formulas
- Frequency Distribution in Excel using Pivot Table
#1 Create Frequency Distribution using Excel COUNTIF Formula
Let us learn this concept with the help of an example. In a corporate company, a yearly review was done, and everyone got a rating out of 10. There was a total of 50 employees rating done.
Below is the rating data for 50 employees
Below are the steps for creating frequency distribution using COUNTIF function –
- Now, I need to check how many people got a rating from 4 to 6, 6 to 8, and 8 to 10. This time I am not applying a pivot table; rather, I will use the COUNTIF functionUse The COUNTIF FunctionThe COUNTIF function in Excel counts the number of cells within a range based on pre-defined criteria. It is used to count cells that include dates, numbers, or text. For example, COUNTIF(A1:A10,”Trump”) will count the number of cells within the range A1:A10 that contain the text “Trump”
to get the total. Before that, I have created frequency levels like this.
- I am going ahead and applying the COUNTIF function to get the total count. In cell E2, I mention the COUNTIF function, which counts all the numbers in range A2 to A52, which are less than or equal to 6.
- In cell E3, I have used the COUNTIFS function, which counts numbers if the number is greater than 6 but less than 8.
- In cell E4, use the COUNTIFS functionUse The COUNTIFS FunctionThe COUNTIFS excel function counts the values of the supplied range based on one or multiple criteria (conditions). The supplied range can be single or multiple and adjacent or non-adjacent. Being a statistical function of Excel, the COUNTIFS supports the usage of comparison operators and wildcard characters.
, which counts numbers if the number is greater than 8 but less than 10.
Conclusion: Now, we have results here. 19 employees rating is between 4 to 6, 14 employees rating is between 6 to 8, and 18 employees rating is between 8 to 10.
#2 Frequency Distribution in Excel using Pivot Table
Let us learn this concept with the help of examples.
Let me explain to you with an example of a Frequency distribution in Excel. I have units sold data with the price of the product.
Here I need to know between 15 to 30 price range how many units sold, between 31 to 45 how many units sold, and so on.
- Step 1: Select the data and apply a pivot table.
- Step 2: Drag and drop Product Price heading to Rows and Units Sold to Values.
- Step 3: Now, the pivot summary report should like this.
- Step 4: Now right-click on the Product Price column and select Group.
- Step 5: Once you click on Group, it will open up the below dialogue box.
- Step 6: In the Starting at the box, mention 15 and ending at mention 147 and in By mention 15, because we are creating frequency for every 15th value. This is our first frequency range.
- Step 7: Click on the Ok. Pivot grouped values like 15 to 30, 31 to 45, 46 to 60, etc.
Conclusion: Now we can analyze that the highest number of units sold when the price is between 15 to 29, i.e., 54819.
When the product price is between 30 to 44 units sold quantity is 53794 and similarly, the least number of products sold when the price is between 45 to 59, i.e., 10982.
There was a survey on money spent on alcohol based on the age group. At different age groups, money spent on a monthly basis, I have the data. From this data, I need to find out which age group is spending more.
In this data, the smallest age is 15, and the highest age is 72. I need to find out between 15 to 30, 30 to 45, and 45 to 60, and so on.
Below is the data.
- Step 1: Apply the pivot table to this data. In ROWS put Age and for values put Amt Spent.
- Step 2: Now, the pivot summary report should like this.
- Step 3: Now right-click on the age in the pivot table and select Group. In starting at mention 15 and ending at 72 and By mention 15.
- Step 4: Click on the OK. It will group the age returns the sum for the age group.
Conclusion: It is clear that the age group between 15 to 29 is spending more money on alcohol consumption, which is not a good sign.
But the age group 30 to 44 spend less on alcohol; maybe they have realized the mistake they did at their young age.
Things to Remember
- You need to identify the frequency level first before making the frequency distribution.
- Use a pivot table for frequency distributionFrequency DistributionFrequency distribution refers to the repetitiveness of a variable, i.e., the number of times a variable occurs in a data set. In excel, it is a function to tabulate or graphically represent the recurrence of a particular value in a group or at an interval. is always dynamic in nature.
- If you are using the COUNTIF function, you need to manually create frequency levels in excel.
This has been a guide to Frequency Distribution in Excel. Here we discuss how to create Frequency Distribution in Excel Using 1) Excel Formulas, 2) Pivot Table along with practical examples, and a downloadable excel template. You may learn more about excel from the following articles –