FREQUENCY counts how many values from a data set fall into each of a set of intervals (bins). It returns a vertical array of counts, one for each bin plus one for values above the highest bin.
=FREQUENCY(data_array, bins_array)What does FREQUENCY do?
FREQUENCY is a statistical function that answers a simple but very common question: how many values fall into each range? You give it a list of numbers and a list of bin limits, and it returns a count for every interval. For example, with sales figures and bins of 100, 200, and 300, it tells you how many sales were up to 100, how many were 101–200, how many were 201–300, and how many were above 300.
This matters because raw lists are hard to read. A column of 500 test scores or 200 invoice amounts hides its pattern until you group the values. FREQUENCY does that grouping in one step, and the result is the basis of a histogram or a frequency distribution table. It is also a building block for dashboards, grading curves, and inventory analysis.
Imagine you manage a support team and have a list of ticket resolution times in hours. You want to know how many tickets were closed within 1 hour, within 2 hours, and so on. Instead of sorting and counting by hand, you enter the bin limits and use FREQUENCY to get every count at once. The same approach works for exam marks, order values, ages, or delivery days.
When to use FREQUENCY
- Building a frequency distribution table for exam scores or survey ratings.
- Grouping sales amounts into price bands for a sales report.
- Counting support tickets by resolution-time ranges.
- Analysing delivery times by number of days.
- Creating the data behind a histogram chart.
- Checking how many invoices fall into ageing buckets such as 0–30, 31–60, and 61–90 days.
FREQUENCY syntax
=FREQUENCY(data_array, bins_array)| Argument | Required? | What to enter |
|---|---|---|
data_array | Required | The range or array of numbers you want to count. Text and blank cells are ignored. Example: B2:B11 for ten sales amounts. |
bins_array | Required | The range or array of upper limits for each interval, in ascending order. Each bin includes values less than or equal to its limit. Example: D2:D4 containing 100, 200, 300. |
What it returns: A vertical array of counts. The array has one more element than bins_array: the first element counts values up to the first bin, the next counts values above the first bin and up to the second, and so on, and the final element counts values greater than the last bin. In modern Excel the array spills automatically; in older versions you enter it as a multi-cell array formula.
FREQUENCY examples
1 Example 1: Count test scores by grade band
The goal is to see how many students scored in each band. The data is in B2:B11 and the bin limits are in D2:D4 (60, 70, 80). FREQUENCY counts scores up to 60, then 61–70, then 71–80, and finally scores above 80. The formula is entered in F2 and spills down four cells. The result is 3, 2, 3, and 2, meaning 3 students scored 60 or below, 2 scored 61–70, 3 scored 71–80, and 2 scored above 80.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Student | Score | Bin | Count | |||
| 2 | Anna | 55 | 60 | 2 | |||
| 3 | Ben | 62 | 70 | ||||
| 4 | Cara | 71 | 80 | ||||
| 5 | Dan | 85 | |||||
| 6 | Ella | 58 | |||||
| 7 | Finn | 74 | |||||
| 8 | Gina | 90 | |||||
| 9 | Hugo | 66 | |||||
| 10 | Ivy | 79 | |||||
| 11 | Jack | 81 | |||||
| 12 |
2 Example 2: Group order values into price bands
Here the goal is to count orders by amount. The order amounts are in B2:B9 and the bin limits are 50, 100, and 150 in D2:D4. FREQUENCY returns four counts: orders up to 50, 51–100, 101–150, and above 150. Checking the data gives 2 orders up to 50 (45 and 30), 3 orders from 51 to 100 (75, 100, and 60), 2 orders from 101 to 150 (120 and 150), and 1 order above 150 (200). The formula in F2 spills the values 2, 3, 2, 1.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Order | Amount | Bin | Count | |||
| 2 | O-1001 | 45 | 50 | 2 | |||
| 3 | O-1002 | 75 | 100 | ||||
| 4 | O-1003 | 120 | 150 | ||||
| 5 | O-1004 | 30 | |||||
| 6 | O-1005 | 100 | |||||
| 7 | O-1006 | 200 | |||||
| 8 | O-1007 | 60 | |||||
| 9 | O-1008 | 150 | |||||
| 10 |
3 Example 3: Count support tickets by resolution time
A support manager wants to know how many tickets were resolved within 1, 2, 3, and 4 hours. Resolution times in hours are in B2:B11, and the bin limits are 1, 2, 3, and 4 in D2:D5. FREQUENCY counts tickets up to 1 hour, then 1–2 hours, 2–3 hours, 3–4 hours, and finally over 4 hours. The data gives 2 tickets up to 1 hour (0.5 and 1), 3 tickets from 1 to 2 hours (1.5, 2, and 1.8), 2 tickets from 2 to 3 hours (2.5 and 3), 2 tickets from 3 to 4 hours (3.5 and 4), and 1 ticket over 4 hours (5). The formula in F2 returns 2, 3, 2, 2, 1.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Ticket | Hours | Bin | Count | |||
| 2 | T-01 | 0.5 | 1 | 2 | |||
| 3 | T-02 | 1.5 | 2 | ||||
| 4 | T-03 | 2.5 | 3 | ||||
| 5 | T-04 | 3.5 | 4 | ||||
| 6 | T-05 | 1 | |||||
| 7 | T-06 | 2 | |||||
| 8 | T-07 | 3 | |||||
| 9 | T-08 | 4 | |||||
| 10 | T-09 | 1.8 | |||||
| 11 | T-10 | 5 | |||||
| 12 |
4 Example 4: Ageing report for invoices
The goal is to see how many invoices fall into ageing buckets. Days outstanding are in B2:B10, and the bin limits are 30, 60, and 90 in D2:D4. FREQUENCY counts invoices up to 30 days, 31–60 days, 61–90 days, and over 90 days. From the data: 3 invoices are up to 30 days (10, 20, and 30), 2 are 31–60 days (45 and 60), 2 are 61–90 days (75 and 90), and 2 are over 90 days (100 and 120). The formula in F2 spills 3, 2, 2, 2.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Invoice | Days | Bin | Count | |||
| 2 | INV-01 | 10 | 30 | 3 | |||
| 3 | INV-02 | 45 | 60 | ||||
| 4 | INV-03 | 75 | 90 | ||||
| 5 | INV-04 | 100 | |||||
| 6 | INV-05 | 20 | |||||
| 7 | INV-06 | 60 | |||||
| 8 | INV-07 | 90 | |||||
| 9 | INV-08 | 120 | |||||
| 10 | INV-09 | 30 | |||||
| 11 |
5 Example 5: Delivery days by region
A logistics analyst wants to count deliveries by how many days they took. Delivery days are in B2:B11, and the bin limits are 2, 4, and 6 in D2:D4. FREQUENCY counts deliveries up to 2 days, 3–4 days, 5–6 days, and over 6 days. The data gives 3 deliveries up to 2 days (1, 2, and 2), 3 deliveries from 3 to 4 days (3, 4, and 4), 3 deliveries from 5 to 6 days (5, 6, and 6), and 1 delivery over 6 days (7). The formula in F2 returns 3, 3, 3, 1.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Days | Bin | Count | |||
| 2 | North | 1 | 2 | 3 | |||
| 3 | South | 3 | 4 | ||||
| 4 | East | 5 | 6 | ||||
| 5 | West | 2 | |||||
| 6 | North | 4 | |||||
| 7 | South | 6 | |||||
| 8 | East | 7 | |||||
| 9 | West | 2 | |||||
| 10 | North | 4 | |||||
| 11 | South | 6 | |||||
| 12 |
Common FREQUENCY errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #N/A | The formula was entered in a single cell in an older version of Excel without being confirmed as an array formula, or the output range is too small. | In Excel 365 or Excel 2021, press Enter and let the result spill. In older versions, select the full output range (one more cell than bins), type the formula, and press Ctrl+Shift+Enter. |
| #VALUE! | bins_array contains text or is not a valid range of numbers. | Make sure every bin limit is a number. Remove text or blanks from the bin range. |
| Wrong counts | Bin limits are not in ascending order, or the final 'above the last bin' count is missing because the output range was too short. | Sort the bin limits from smallest to largest and always leave one extra output cell for the overflow count. |
| #NAME? | The function name is misspelled, for example =FREQUENC(...). | Type =FREQUENCY( and let Excel suggest the name, or correct the spelling. |
Tips for using FREQUENCY
- Always include one more output cell than the number of bins; the extra cell counts values greater than the highest bin.
- Keep bin limits in ascending order. FREQUENCY does not sort them for you.
- Use whole numbers for clean bins, or decimals such as 0.5, 1.5, and 2.5 for time-based data.
- In Excel 365 the result spills automatically; do not type the formula into every output cell.
- Pair the result with a column chart to create a quick histogram.
- If you need labels, type the bin limits next to the counts and add an 'Over' label for the final count.
Frequently asked questions
Why does FREQUENCY return one more number than I have bins?
The last value counts everything above the highest bin. For example, bins of 10, 20, and 30 produce four counts: up to 10, 11–20, 21–30, and over 30.
Does FREQUENCY include the bin limit in the count?
Yes. Each bin counts values less than or equal to its limit. A bin of 60 counts scores of 60 and below.
Can I use FREQUENCY with text or blank cells in the data?
Yes. Text and blank cells in data_array are ignored, so only numbers are counted.
Do I need to press Ctrl+Shift+Enter?
Only in older Excel versions. In Excel 365 and Excel 2021, FREQUENCY spills automatically after you press Enter.
What happens if my bins are not sorted?
The counts will be wrong because FREQUENCY expects ascending bin limits. Sort the bins from smallest to largest before using the function.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. FREQUENCY reference