Popular Searches
Popular Course Categories
Popular Courses

Creating Frequency Distributions and Histograms

Creating Frequency Distributions and Histograms

Statistical Analysis and Forecasting

Creating Frequency Distributions and Histograms in Excel

Course: Advanced Excel Course

Topic: Creating Frequency Distributions and Histograms

Course Link: Advanced Excel Training

Demo Link: Register for a Course Demo

Website: JustAcademy


1. Introduction to Frequency Distributions and Histograms

Frequency distributions and histograms are important tools for organizing, summarizing, and visualizing numerical data in Microsoft Excel. When a dataset contains many observations, it can be difficult to understand the distribution by looking at individual values. A frequency distribution groups observations into categories or intervals and counts how many values fall into each group.

A histogram displays these frequencies visually using adjacent bars. It helps users identify where values are concentrated, how widely data is spread, whether the distribution is symmetrical or skewed, and whether unusual observations may require investigation.

For example, a teacher can group students' examination marks into score ranges such as 0–20, 21–40, 41–60, 61–80, and 81–100. A frequency table shows the number of students in each range, while a histogram makes it easier to compare the ranges visually.

2. Learning Objectives

  • Understand frequency distributions, class intervals, bins, and histograms.
  • Differentiate between frequency, relative frequency, and cumulative frequency.
  • Organize raw data into suitable intervals.
  • Create frequency tables using Excel formulas and the Analysis ToolPak.
  • Use the FREQUENCY function to count observations within numeric bins.
  • Create and format a histogram using Excel's chart features.
  • Interpret patterns, spread, skewness, and possible outliers.
  • Apply frequency analysis to sales, examination scores, customer data, and business reports.

3. What Is a Frequency Distribution?

A frequency distribution is a table that shows how many times a value, category, or interval occurs in a dataset. It converts raw observations into a structured summary.

Frequency distributions can be used for numerical data, such as marks and sales amounts, as well as categorical data, such as product types or customer feedback categories.

Example of a Frequency Distribution

Suppose ten students receive the following marks:

42, 55, 61, 67, 72, 75, 78, 82, 88, 91

The marks can be grouped into score intervals to make the distribution easier to understand.

Marks Interval Frequency
0–49 1
50–59 1
60–69 2
70–79 3
80–89 2
90–100 1
Total 10

The table shows that three students scored between 70 and 79, making it the most frequent interval in this example.

4. Important Terms in Frequency Analysis

Term Meaning Example
Frequency Number of observations in a category or interval. Five customers made purchases in a particular price range.
Class interval A range used to group numerical observations. Marks from 60 to 69.
Bin A defined boundary or interval used to group data in Excel. Excel FREQUENCY bins with upper limits 50, 60, and 70.
Bin width The size of each interval in a histogram. A width of 10 marks.
Relative frequency Frequency divided by the total number of observations. 5 out of 20 observations = 25%.
Cumulative frequency Running total of frequencies up to a specified interval. 2 + 4 + 5 = 11 observations up to the third group.
Histogram A chart showing the frequency distribution of numerical data using adjacent bars. Distribution of monthly sales values.
Distribution The overall pattern of values across the observed range. Most sales values may cluster around the middle.

5. Understanding Histograms

A histogram is a statistical chart that displays numerical data grouped into intervals. Each bar represents a bin, and the height of the bar shows the frequency or count of observations in that bin.

Unlike a standard column chart, histogram bars normally touch because the intervals represent adjoining portions of a numerical scale.

Main Components of a Histogram

  • Horizontal axis: Displays the numeric intervals or bins.
  • Vertical axis: Displays the frequency or count of observations.
  • Bars: Represent the number of observations within each interval.
  • Bin width: Determines the size of the intervals.
  • Chart title: Explains what the distribution represents.
  • Axis titles: Clarify the variable and the frequency measure.

Frequency Distribution vs. Histogram

Feature Frequency Distribution Histogram
Format Table Chart
Purpose Provides exact counts for each group. Provides a visual representation of the distribution.
Values Displays numerical frequencies directly. Shows frequencies through bar heights.
Pattern recognition Possible, but requires reading the table. Often easier to identify clusters, gaps, and skewness.
Best use Detailed reporting and calculations. Presentations and visual analysis.

6. Preparing Data for Frequency Analysis

Before building a frequency distribution or histogram, make sure the dataset is clean and organized.

Step 1: Enter the raw data

Place the observations in one column and use a descriptive heading.

A1: Student Marks
A2: 42
A3: 55
A4: 61
A5: 67
A6: 72
A7: 75
A8: 78
A9: 82
A10: 88
A11: 91

Step 2: Validate the observations

  • Ensure numeric values are stored as numbers rather than text.
  • Check for blanks and error values.
  • Confirm that the values use consistent units.
  • Investigate values outside the expected range.
  • Keep the original raw data unchanged so results can be checked later.

Step 3: Decide on appropriate intervals

Select intervals that suit the scale and purpose of the analysis. For marks out of 100, intervals of 10 or 20 marks may be useful. For sales data, intervals might be ₹10,000 wide, depending on the spread of values.

Intervals should normally be mutually exclusive and cover the relevant data range. Avoid unnecessarily many narrow bins or a few overly broad bins, because either choice can hide useful patterns.

7. Creating a Frequency Distribution Manually

One straightforward method is to create a table with intervals and use COUNTIFS to count the observations in each interval.

Step 1: Create the interval table

Suppose the raw marks are stored in A2:A11. Create the following table in columns C to E.

Column C: Lower Limit Column D: Upper Limit Column E: Frequency
0 49 Formula
50 59 Formula
60 69 Formula
70 79 Formula
80 89 Formula
90 100 Formula

Step 2: Use COUNTIFS

Enter this formula in E2:

=COUNTIFS($A$2:$A$11,">="&C2,$A$2:$A$11,"<="&D2)

Copy the formula down for the remaining intervals. It counts values that are greater than or equal to the lower limit and less than or equal to the upper limit.

Important: This formula works for the integer intervals shown above because the intervals do not overlap. For decimal data, define clear boundaries so a value cannot be counted twice or excluded between adjacent intervals.

Step 3: Calculate the total frequency

Below the frequency column, enter:

=SUM(E2:E7)

The total should equal the number of valid observations being analyzed. If it does not, check the interval boundaries, blanks, text values, and whether every observation falls into a group.

8. Creating a Frequency Distribution with the FREQUENCY Function

Excel's FREQUENCY function calculates how many numeric observations fall at or below each specified bin limit, with an additional result for values above the highest limit. It is useful when you want a formula-driven frequency table.

Syntax:

=FREQUENCY(data_array,bins_array)
  • data_array: The range containing the original observations.
  • bins_array: The range containing the upper limits of the bins.

Example

Suppose marks are in A2:A11 and bin upper limits are in C2:C7:

C2: 49
C3: 59
C4: 69
C5: 79
C6: 89
C7: 100

In a modern Excel version that supports dynamic arrays, enter the following formula in D2:

=FREQUENCY(A2:A11,C2:C7)

Excel spills the results vertically into seven cells: one frequency for each of the six bin limits and an extra count for values greater than the highest bin limit.

For older Excel versions without dynamic arrays, select the seven output cells first, enter the formula, and confirm it using Ctrl+Shift+Enter. The exact behavior depends on the Excel version.

Important distinction: FREQUENCY uses bin upper limits. With bin limits of 49, 59, 69, 79, 89, and 100, the first group counts values less than or equal to 49; the next counts values greater than 49 and less than or equal to 59, and so on. For non-negative integer marks, this matches the intervals 0–49, 50–59, 60–69, and so forth, assuming values below zero are not present.

9. Calculating Relative and Cumulative Frequency

Relative frequency and cumulative frequency provide additional insight beyond simple counts.

9.1 Relative Frequency

Relative frequency expresses the frequency of a group as a proportion or percentage of the total observations.

Formula: Relative Frequency = Group Frequency ÷ Total Frequency

If frequencies are in E2:E7, enter this formula in F2:

=E2/SUM($E$2:$E$7)

Copy the formula down and format the results as percentages.

9.2 Cumulative Frequency

Cumulative frequency is the running total of frequencies up to the current interval.

If frequencies are in E2:E7, enter in G2:

=SUM($E$2:E2)

Copy the formula down. The last cumulative frequency should equal the total number of observations, provided all observations are covered by the intervals.

Example Summary Table

Marks Interval Frequency Relative Frequency Cumulative Frequency
0–49 1 10% 1
50–59 1 10% 2
60–69 2 20% 4
70–79 3 30% 7
80–89 2 20% 9
90–100 1 10% 10
Total 10 100% 10

10. Creating a Histogram Using Excel's Built-In Chart

Modern versions of Excel provide a built-in Histogram chart for numerical data. This is a convenient method because Excel can automatically calculate bins and lets you adjust their widths and number.

Step 1: Select the data

  1. Place the numerical observations in one column with a heading.
  2. Select the cells containing the values. Include the heading if appropriate.
  3. Confirm that the selected range contains the data you want to analyze.

Step 2: Insert the histogram

  1. Open the Insert tab.
  2. Select Insert Statistic Chart.
  3. Choose Histogram.
  4. Excel creates a histogram from the selected data.

Step 3: Adjust the bins

  1. Right-click the horizontal axis.
  2. Select Format Axis.
  3. Under Axis Options, locate the bin settings.
  4. Set a suitable bin width or number of bins.
  5. Optionally configure underflow and overflow bins when appropriate.

Bin settings and the exact interface can vary by Excel version. If the Histogram chart type is unavailable, use the Analysis ToolPak or create a frequency table and plot the frequencies with a column chart.

Step 4: Format the chart

  • Add a meaningful title, such as Distribution of Student Marks.
  • Label the horizontal axis with the variable or measurement.
  • Label the vertical axis as Frequency or Number of Students.
  • Use readable axis labels and an appropriate scale.
  • Avoid decorative effects that make the bars harder to compare.

11. Creating a Histogram with the Analysis ToolPak

The Analysis ToolPak provides a Histogram tool that can generate a frequency table and histogram output from raw data and defined bins.

Step 1: Enable the Analysis ToolPak

  1. Open Excel and select File, then Options.
  2. Choose Add-ins.
  3. At the bottom, select Excel Add-ins in the Manage list and click Go.
  4. Select Analysis ToolPak and click OK.
  5. For Excel for Mac, open Tools, choose Excel Add-ins, and select Analysis ToolPak.

Step 2: Prepare bin limits

Enter bin upper limits in a separate column, such as 49, 59, 69, 79, 89, and 100. These limits define the upper boundary for each group.

Step 3: Open the Histogram tool

  1. Go to the Data tab.
  2. Click Data Analysis.
  3. Select Histogram and click OK.

Step 4: Configure the input

  • Input Range: Select the raw numerical data.
  • Bin Range: Select the cells containing bin upper limits.
  • Labels: Select the labels option if the selected ranges include headings.
  • Output Range: Select a destination for the results, or choose a new worksheet.
  • Chart Output: Select this option to include a histogram chart in the output.
  • Cumulative Percentage: Select this option if you also want cumulative percentages.

Step 5: Generate and review the results

  1. Check that the ranges are correct.
  2. Click OK to generate the output.
  3. Verify the frequency counts and the total observations.
  4. Review the chart title, axis labels, and bin boundaries.

The ToolPak output is a generated report rather than a live formula-driven summary. If the source data changes, run the analysis again to update the report.

12. How to Interpret a Histogram

A histogram is useful because its overall shape can reveal information that is difficult to identify from raw values alone.

Pattern Description Possible Interpretation
Approximately symmetrical Values are distributed fairly evenly around the center. The mean and median may be similar, although this should be verified.
Right-skewed The distribution has a longer tail toward higher values. A few unusually large observations may pull the mean upward.
Left-skewed The distribution has a longer tail toward lower values. A few unusually low observations may pull the mean downward.
Uniform-like Frequencies are relatively similar across bins. Values may be spread fairly evenly across the observed range.
Bimodal Two noticeable peaks appear. The dataset may contain two groups or different underlying processes.
Gaps One or more bins have no observations. Some ranges may be uncommon or absent in the collected data.
Isolated extreme values Observations appear far from the main cluster. Investigate possible outliers, data errors, or legitimate rare cases.

A histogram provides clues rather than definitive explanations. A different bin width can change the apparent shape, so use sensible bins and consider the underlying data before drawing conclusions.

13. Choosing the Correct Bin Width

Bin width affects how much detail appears in a histogram. If bins are too wide, important patterns may disappear. If bins are too narrow, random fluctuations can make the chart look noisy.

Practical Guidelines

  • Use intervals that make sense for the variable being analyzed.
  • For examination marks out of 100, intervals of 10 marks may be easy to interpret.
  • For sales values, choose a width based on the typical scale and spread of sales.
  • Compare a small number of reasonable bin-width choices if the distribution is unclear.
  • Keep the same bin definitions when comparing groups or time periods.
  • Make sure the intervals cover the relevant observations.

Excel's automatic histogram setting selects a bin width using a built-in rule. Automatic settings are convenient, but manual adjustments may be more suitable when the analysis has specific reporting requirements.

14. Frequency Analysis for Categorical Data

Not all frequency distributions use numerical intervals. For categorical data, count the number of occurrences of each category.

For example, a company may record customer preferences for four product categories.

Product Category Number of Responses Percentage
Laptop 18 36%
Mobile 15 30%
Tablet 8 16%
Accessories 9 18%
Total 50 100%

For categorical data, a bar chart is often more appropriate than a numerical histogram. A histogram is intended for numerical values grouped into intervals, whereas a bar chart compares distinct categories.

15. Practical Business Applications

  • Sales analysis: Group sales amounts into ranges to identify where most transactions occur.
  • Customer spending: Examine purchase amounts to understand typical spending bands.
  • Education: Group examination scores to understand the spread of student performance.
  • Human resources: Summarize employee tenure, salary bands, or training assessment results.
  • Inventory management: Review demand quantities to identify common order sizes.
  • Quality control: Group measurements into intervals to observe process variation.
  • Customer service: Analyze waiting times or resolution times to find common ranges.
  • Marketing: Summarize customer ages, order values, or campaign response metrics when the data has been collected appropriately.

16. Common Errors and Troubleshooting

Problem Possible Cause Solution
Frequencies do not add up to the total count. Some observations fall outside the bins or the ranges are incorrect. Check the lowest and highest boundaries and verify the input range.
FREQUENCY returns an extra result. The function returns one more result than the number of bin limits. Allow for the extra result, which counts values above the highest bin.
Some values are not counted. Values may be stored as text, blank, or outside the selected intervals. Validate data types and review the bin boundaries.
Values appear in two groups. Manually defined intervals may overlap. Use mutually exclusive intervals and consistent boundary rules.
Histogram chart option is missing. The Excel version may not support the built-in chart or the command may be located elsewhere. Use the Analysis ToolPak or a frequency table with a column chart.
Histogram looks too crowded. Too many narrow bins may be displayed. Increase bin width or reduce the number of bins.
Histogram hides important details. Bins may be too wide. Try a smaller bin width and compare the shape.
Frequency table does not update. The table may contain static counts or ToolPak output. Recalculate formulas or rerun the ToolPak analysis.
Unexpected empty intervals appear. No observations fall within those intervals, or the boundaries are unsuitable. Confirm that the gaps are genuine and adjust bins if appropriate.

17. Best Practices for Frequency Distributions and Histograms

  • Keep an unchanged copy of the raw data.
  • Validate missing values, text-formatted numbers, and out-of-range observations.
  • Choose bin widths based on the purpose and scale of the analysis.
  • Use consistent intervals when comparing multiple datasets.
  • Ensure that intervals do not overlap and that the relevant observations are covered.
  • Verify that the total frequency matches the number of valid observations.
  • Use a clear title and label both axes.
  • Avoid misleading scales and unnecessary chart effects.
  • Investigate unusual observations before deciding whether they are errors.
  • Use a bar chart for distinct categories rather than treating them as continuous numerical intervals.
  • Explain what the chart shows instead of presenting it without interpretation.
  • Document the data source, reporting period, and bin definitions.

18. Practice Exercise

Enter the following examination marks into cells A2:A16:

35, 42, 48, 51, 56, 59, 63, 67, 71, 74, 78, 82, 85, 91, 96

Complete the following tasks:

  1. Create intervals for marks 0–49, 50–59, 60–69, 70–79, 80–89, and 90–100.
  2. Calculate each interval's frequency using COUNTIFS.
  3. Calculate relative frequency and cumulative frequency.
  4. Verify that the total frequency equals 15.
  5. Create a histogram using Excel's built-in Histogram chart.
  6. Adjust the bin width and compare how the chart changes.
  7. Write a short interpretation identifying the most frequent interval and the overall spread of marks.

Useful Formulas

Frequency:
=COUNTIFS($A$2:$A$16,">="&C2,$A$2:$A$16,"<="&D2)

Relative Frequency:
=E2/SUM($E$2:$E$7)

Cumulative Frequency:
=SUM($E$2:E2)

Total Frequency:
=SUM(E2:E7)

19. Mini Project: Customer Purchase Distribution

Objective: Create a frequency distribution and histogram to analyze customer purchase amounts for a retail business.

Project Requirements

  1. Collect at least 30 numerical purchase amounts from a sample dataset or an authorized business dataset.
  2. Check for missing, invalid, and inconsistent values.
  3. Choose sensible purchase-amount intervals, such as ranges of ₹500 or ₹1,000, depending on the data.
  4. Calculate the frequency in each interval using COUNTIFS or FREQUENCY.
  5. Calculate relative and cumulative frequencies.
  6. Create a histogram and format the chart for a business report.
  7. Identify the interval with the highest frequency and describe the overall distribution.
  8. Investigate any unusual values and document relevant assumptions.

Expected Deliverables

  • A clean source-data worksheet.
  • A frequency distribution table.
  • A histogram with clear labels.
  • A short written summary explaining the most common purchase range and any noticeable patterns.

20. Interview Questions and Answers

Q1. What is a frequency distribution?

A frequency distribution is a table that organizes data into categories or intervals and shows the number of observations in each group.

Q2. What is a histogram?

A histogram is a chart that displays the frequency distribution of numerical data using adjacent bars for defined intervals.

Q3. What is the difference between a histogram and a bar chart?

A histogram represents numerical data grouped into intervals, with adjacent bars. A bar chart compares distinct categories, and its bars are usually separated.

Q4. What is bin width?

Bin width is the size of the interval used to group observations in a histogram.

Q5. What does the FREQUENCY function do?

FREQUENCY counts numerical observations at or below specified bin limits and returns an additional count for observations above the highest limit.

Q6. How do you calculate relative frequency?

Divide the frequency of a group by the total number of observations. Multiply by 100 or format the result as a percentage to display it as a percentage.

Q7. What is cumulative frequency?

Cumulative frequency is the running total of frequencies across ordered intervals.

Q8. Why does FREQUENCY return an extra result?

It returns one more result than the number of bin limits so values greater than the highest limit can be counted separately.

Q9. How can you create a histogram in Excel?

Select the numerical data, open Insert, choose Insert Statistic Chart, and select Histogram. Alternatively, use the Analysis ToolPak's Histogram tool.

Q10. How does bin width affect a histogram?

Smaller bins show more detail but may make the chart noisy. Larger bins simplify the chart but can hide important patterns.

Q11. What is a right-skewed distribution?

A right-skewed distribution has a longer tail toward larger values, often because some observations are much higher than most of the data.

Q12. How can you check whether a frequency table is complete?

Verify that the total frequency equals the number of valid observations and that the intervals cover the intended data range without unintended overlaps or gaps.

21. Quick Revision Checklist

  • Frequency distribution: summarizes how often values occur in groups.
  • Histogram: visualizes numerical frequencies with adjacent bars.
  • COUNTIFS: counts values satisfying specified conditions.
  • FREQUENCY: counts observations using bin upper limits and returns an extra overflow count.
  • Relative frequency: group frequency divided by total frequency.
  • Cumulative frequency: running total of frequencies.
  • Built-in histogram: Insert > Insert Statistic Chart > Histogram.
  • Analysis ToolPak: Data > Data Analysis > Histogram.
  • Bin width: determines the detail and appearance of the distribution.
  • Always check that frequency totals match the number of valid observations.

22. Conclusion

Creating frequency distributions and histograms in Excel makes large datasets easier to summarize, compare, and interpret. Frequency tables provide exact counts, while histograms reveal the overall shape and spread of numerical data.

By using COUNTIFS, FREQUENCY, relative and cumulative frequency calculations, Excel's built-in histogram chart, and the Analysis ToolPak, users can prepare useful statistical summaries for business reporting, education, customer analysis, and quality control.

Accurate results depend on clean data, sensible bin boundaries, suitable bin widths, and careful interpretation. Always verify the frequency totals and investigate unusual patterns before drawing conclusions.


Related Course Resources

Explore the Advanced Excel Course to develop practical spreadsheet and data analysis skills.

Interested in learning more? Register for a course demo to explore the training options.

Visit the JustAcademy website for more learning resources.

Previous Next
whatsapp