How to Plot Frequency Distribution in Excel (4 Easy Ways)

To explain how to plot frequency distributions, we will use a dataset containing information about some students’ Marks.


Method 1 – Plotting a Frequency Distribution in Excel with Histogram Chart

Steps:

  • Select all cells of the dataset.

Plot Frequency Distribution in Excel with Histogram Chart

  • Go to the Insert tab and select the Insert Static Chart icon. A drop-down menu will appear.
  • Select Histogram.

Plot Frequency Distribution in Excel with Histogram Chart

  • You will see a chart like the picture below.

Plot Frequency Distribution in Excel with Histogram Chart

  • Rightclick on the values of the X-axis and select Format Axis from the Context Menu. It will open the Format Axis settings.

Plot Frequency Distribution in Excel with Histogram Chart

  • In the Axis Options section, we set the Bin Width to 7. You choose the Bin Width according to your preferences. The Bin Width indicates the size of a group or interval.

Plot Frequency Distribution in Excel with Histogram Chart

  • You will see the plot of the frequency distribution like the picture below.

Plot Frequency Distribution in Excel with Histogram Chart


Method 2 – Applying Excel Formulas to Plot the Frequency Distribution in Excel


Case 2.1 – Using the FREQUENCY Function

Steps:

  • Create a section for the groups. You need to write the Lower Limit and Upper Limit for each group. We grouped the dataset by 10 starting from 31.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Select Cell G5 and insert the following formula:
=FREQUENCY(C5:C15,F5:F10)

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Press Enter to see the result.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Select the Upper Limits like the picture below.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Go to the Insert tab and select the Insert Column Chart icon. A drop-down menu will appear.
  • Select Clustered Column from there.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Rightclick on the chart and click on Select Data from the Context Menu.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • In the Select Data Source window, select Frequency in the Legend Entries box and type =‘FREQUENCY Function’!$G$4:$G$11 in the Change data range box.
  • You need to type the sheet name in place of the “FREQUENCY Function”.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Click on Edit in the Horizontal Axis Labels box. It will open the Axis Labels dialog box.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Select the range E5:F11.
  • Click OK to proceed.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • A chart will appear on the excel sheet.
  • Rightclick on the chart and click on the Format Data Series option.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • In the Format Data Series section, set the Gap Width to 3%.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • You will see the plot of the frequency distribution.

Apply Excel Formulas to Plot Frequency Distribution in Excel


Case 2.2 – Applying the COUNTIFS Function

Steps:

  • Create a section for the Upper Limit, Lower Limit, and Frequency.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Select Cell G5 and insert the formula given below:
=COUNTIFS($C$5:$C$15,">="&E5,$C$5:$C$15,"<="&F5)
  • Press Enter to see the result.

Apply Excel Formulas to Plot Frequency Distribution in Excel

In this formula, the COUNTIFS function counts the occurrence of marks in the range C5:C15 when it’s greater than E5 and less than F5.

  • Drag the Fill Handle down.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • You will find the frequency for each group.

Apply Excel Formulas to Plot Frequency Distribution in Excel

  • Repeat the steps of the previous method to get a plot of frequency distribution like the below picture.

Apply Excel Formulas to Plot Frequency Distribution in Excel


Method 3 – Inserting a Pivot Table to Plot the Frequency Distribution in Excel

Steps:

  • Select all the cells of the dataset.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • Go to the Insert tab and click on the PivotTable option. A message box will pop up.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • Click OK to proceed.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • In the Pivot Table Fields settings, select Marks and drag it into the Rows and Values box.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • Rightclick on Sum of Marks and select Value Field Settings.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • In the Value Field Settings dialog box, select Count and click OK to proceed.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • Rightclick on Cell A4 and select Group from the drop-down menu.

Insert Pivot Table to Plot Frequency Distribution in Excel

  • Type the Starting point, Ending point, and Group By value. We wanted to group them by 10.
  • Click OK to move forward.

  • Click OK.

  • Go to the PivotTable Analyze tab and select the PivotChart icon.

  • In the Insert Chart window, select Column and click on Clustered Column icon.
  • Click OK to see the graph.

  • Rightclick on the graph and select Format Data Series from the menu.

  • In the Format Data Series section, set the Gap Width to 3%.

  • The frequency distribution plot will look like the picture below.


Method 4. Plotting the Frequency Distribution with the Excel Data Analysis ToolPak

Let’s set the Lower and Upper limits for each “bin”.

Steps:

  • Go to the Data tab and click on the Data Analysis option.

Note: If you don’t see the Data Analysis option, then you need to load the Data Analysis ToolPak. To load the Data Analysis Toolpak:

  • Click on the File tab and then, select Options.
  • In the Excel Options window, select Add-ins.
  • Select Excel Add-ins in the Manage box and click on Go.
  • In the Add-ins dialog box, check Analysis ToolPak and click OK to proceed.
  • Select Histogram in the Data Analysis box and click OK.

  • In the Histogram window, insert $C$5:$C$15 in the Input Range box.
  • Put $F$5:$F$11 in the Bin Range box.
  • Check Chart Output and click OK to proceed.

  • You will see a histogram on a new worksheet like the below picture.

Read More: How to Create a Distribution Chart in Excel


Download the Practice Book


Related Articles


<< Go Back to Excel Distribution Chart | Excel Charts | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mursalin Ibne Salehin
Mursalin Ibne Salehin

Mursalin Ibne Salehin holds a BSc in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. Over the past 2 years, he has actively contributed to the ExcelDemy project, where he authored over 150 articles. He has also led a team with content development works. Currently, he is working as a Reviewer in the ExcelDemy Project. He likes using and learning about Microsoft Office, especially Excel. He is interested in data analysis with Excel, machine learning,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo