Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Get Frequency in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, Excel can calculate frequency distributions, but unlike standard functions, it requires a special array formula. This guides you through using the FREQUENCY function to count how many data points fall into specific ranges. You will need a list of numbers and a set of bin ranges to define the intervals you want to measure.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS versions work the same for this function).
  • A dataset of numbers for which you want to find the frequency distribution.
  • A separate list of bin values (also called boundaries or ranges) that define the intervals you want to count.

Step-by-Step

  1. Prepare your data. Enter your raw data into a single column or row, for example, in cells A1 through A20. These are the values you are analyzing. Ensure there are no blank cells in this range, as the function treats them as zeros, which can skew your results.
  2. Set up your bins. In another column or row, enter the upper limits of the intervals you want to use. These are your bin values. For example, if you want to see how many numbers fall between 0-10, 11-20, 21-30, and so on, you would enter 10, 20, 30, 40, etc., into cells B1 through B5. The last bin value represents the upper limit of the final interval.
  3. Select the output range. Click on an empty cell where you want the frequency counts to appear. Select an area that is one cell smaller than your range of bins. For instance, if your bins are in B1:B5, select cells C1:C5. This area will hold the results.
  4. Enter the formula. Type the equals sign (=) and type FREQUENCY. You can either type the function name or select it from the Formulas tab under the Statistical category. The formula should start with =FREQUENCY(data_array, bins_array).
  5. Enter your data range. Click inside the first set of parentheses and select your data range (e.g., A1:A20). Type a comma to separate the arguments.
  6. Enter your bin range. Click inside the second set of parentheses and select your range of bin values (e.g., B1:B5). Type a closing parenthesis to finish the formula syntax.
  7. Confirm as an array formula. This is the critical step that often causes errors. Do not just press Enter. Instead, press Ctrl + Shift + Enter on Windows or Cmd + Shift + Enter on macOS. You will see curly braces { } appear around the formula in the formula bar, indicating it is now an array formula.
  8. Verify the results. Check the cells in your output range. Each cell should contain the count of numbers in your data that are less than or equal to the corresponding bin value but greater than the previous bin value.

Common Mistakes

The most frequent error is forgetting to press Ctrl + Shift + Enter. If you simply press Enter, Excel will only calculate the frequency for the first bin and display that number in all output cells. The result will look wrong because all the counts are identical. You must use the special key combination to force Excel to calculate the array of values.

Another common issue is selecting an output range that is too large or too small. The FREQUENCY function returns one fewer result than the number of bins you provide. The first result in the output corresponds to the first bin (values less than the first bin), and the last result corresponds to the last bin (values less than or equal to the last bin). If you select extra cells, they will remain empty.

Tips

When creating your bins, it is helpful to ensure they cover the entire range of your data without too many gaps. If you have a minimum value of 1 and a maximum of 100, your bins should start at or below 1 and end at or above 100. A common strategy is to calculate the difference between the maximum and minimum values, divide it by the desired number of bins, and use that as the interval size.

For dynamic updates, consider naming your ranges. Select your data and go to the Formulas tab to define a name (e.g., "MyData"). Do the same for your bins and name it "MyBins". Then, in your formula, you can refer to these names instead of the cell addresses. This makes the formula easier to read and less prone to errors if you later insert or delete rows in your data set.

Troubleshooting

If your formula returns a #VALUE! error, check that your data and bin ranges do not contain text or empty cells. The FREQUENCY function cannot process non-numeric data. Clean your data by removing or replacing text entries before trying again.

If the formula works but the numbers seem incorrect, double-check your bin values. The function interprets the first bin as "less than this value." If your data contains a value that is exactly equal to a bin value, it will be counted in that bin, not the next one. Ensure your bins are sequential and correctly ordered from smallest to largest.

Frequently Asked Questions

Where is the FREQUENCY function in Excel?

The FREQUENCY function is located in the Statistical category under the Formulas tab. If you are using the Mac version, the location is the same under the Formula Bar icon. If you cannot find it, it means your version of Excel does not support this specific legacy function, though the functionality is still available.

Why do I need to press Ctrl + Shift + Enter?

Excel treats the FREQUENCY function as an array function. This means it needs to perform a calculation for every cell in the output range simultaneously. Pressing the special key combination tells Excel to treat the formula as an array, enabling it to generate the full list of frequency counts rather than just one.

Can I use FREQUENCY on a Mac?

Yes, the FREQUENCY function is fully supported on macOS. The syntax and the method of entering the formula (using Cmd + Shift + Enter) are identical to the Windows version. It is not limited to a specific operating system.

What is the difference between FREQUENCY and COUNTIFS?

The FREQUENCY function is designed specifically for distributing data into bins and counting the number of occurrences in each bin. The COUNTIFS function is a general-purpose function that counts cells based on multiple criteria. While you can use COUNTIFS to achieve frequency distribution results, the FREQUENCY function is faster, more concise, and less prone to errors when dealing with a large number of bins.

What does the curly brace { } mean?

The curly braces are not something you type yourself. They are Excel's way of visually indicating that a cell contains an array formula. If you see them in your formula bar, it means you successfully entered the function as an array. If you type them yourself, Excel will treat them as text and the formula will return an error.

How do I make a frequency table in Excel?

A frequency table is essentially the combination of your bin values and the frequency counts you just calculated. You can create a table by highlighting both the bin values and the frequency result cells and then pressing Ctrl + T to convert the data into an official Excel Table format. This allows you to easily sort and filter your frequency distribution.