# Calculate Frequency Distribution in Excel

Frequency Distribution

A Frequency Distribution is a summary of how often each value occurs by grouping values together.

For example, you have data for class sections with the number of students in each section.

 Excel : Frequency Distribution

There are multiple ways to calculate frequency distribution (table) with Excel.

1. With COUNTIFS Function
2. With FREQUENCY Function
Calculate Frequency Distribution in Excel

Step 1 : Enter the above data in cells B3:C15. The first row of table has headers.

The same data entered into a sheet in excel appears as follows :

Step 2 : Select the desired class intervals

Step 3 : Create a table with the columns - Class intervals, Lower limit, Upper limit and Frequency.

Step 4 : Calculate lower and upper limits

Suppose class interval column starts from cell E5 (excluding header).

Lower limit -

Enter the following formula in cell F5 and paste it down till the last row of the table.

=MID(E5,1,FIND("-",E5,1)-1)
Upper limit -

Enter the following formula in cell G5 and paste it down till the last row of the table.

=MID(E5,FIND("-",E5,1)+1,2)

Step 5 : Calculate the count in each class intervals.

Frequency Distribution Using COUNTIFS Function

To calculate the last column of the above table, enter the following formula in cell H5 and paste it down till the last row of the table.

=COUNTIFS(\$C\$4:\$C\$15,">="&F5,\$C\$4:\$C\$15,"<="&G5)
Frequency Distribution Using FREQUENCY Function

Create a table with the columns - Class Intervals, Upper Limit and Number of Sections

Upper Limit can be calculated with the formula below in cell F5 -

=MID(E5,FIND("-",E5,1)+1,2)

Paste the formula down till cell F9. Make sure you enter double minus (--) before MID function.

In the next step, select range G5:G9 and then enter FREQUENCY Function

=FREQUENCY(C4:C15, F5:F9)

F5:F9 refers to bins of Upper Limit.

Press CTRL SHIFT ENTER to submit the above FREQUENCY formula as it's an array formula. If it is entered correctly, you would see formula wrapped in curly braces { }

Histogram

We can prepare histogram using frequency table.

Steps to Calculate Histogram
1. Highlight the values in the class intervals column (Column E) and Frequency column (Column H) of the frequency distribution table. (Hold down Ctrl key while highlighting two ranges)
2. Click on the Insert tab and select Clustered Column from the Column or Bar Chart dropdown menu.
3. Remove Series1: Click on the chart to select it, then right-click on Series1 in the chart legend and select Delete.
1. Click on the chart.
2. Click the Chart Design tab under Chart Tools.
3. Click Add Chart Element in the Chart Layouts group.
4. Hover over Axis Titles.
5. Select Primary Horizontal.
6. Select Primary Vertical.
Changing the Scale of y-axis
1. Select the chart.
2. Right-click on the vertical axis (y-axis) of your chart.
3. Select Format Axis from the menu.
4. In the Format Axis pane, expand the Axis Options section if it's not already expanded.
5. Under Bounds, for Minimum, select Fixed and enter the lowest number you want on your Y-axis. For example, enter 0.
6. For Maximum, select Fixed and enter the number where you want the Y-axis to end. For example, enter 5.
7. Close the Format Axis pane.
Related Posts
Share