Excel FREQUENCY Function

There are two ways to “excel frequency function”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: use =FREQUENCY(data_array, bins_array) — it counts how many values fall into each bin and returns one more result than there are bins.

On this page8

Syntax

=FREQUENCY(data_array, bins_array)

Arguments

Argumentrequired / optionalDescription
data_arrayrequiredThe values to count.
bins_arrayrequiredThe upper bound of each bin, in ascending order.

Related functions

COUNTIFSQUARTILEMEDIAN
▤Annotated stepsExcel
1

Type the upper bound of each bin into a column, in ascending order.

2

Select a cell with one more empty row beneath than you have bins.

3

Type =FREQUENCY(, select the data, add a comma, select the bins.

4

Press Enter in Excel 365, or Ctrl+Shift+Enter over a pre-selected range in older versions.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

FREQUENCY buckets a column of numbers into bands and counts each one. Two details govern its use. It always returns one element more than the bins array, the extra being everything above the last bin — so a spilled result that looks one row too long is correct. And each bin counts values greater than the previous bound and less than or equal to its own, so the boundaries are inclusive at the top. In Excel 365 it spills; older versions need the output range selected first and Ctrl+Shift+Enter. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel frequency function”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the outcome you expected before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Scores in B2:B500 with bin bounds 20, 40, 60, 80 in D2:D5: =FREQUENCY(B2:B500, D2:D5) returns five counts — up to 20, 21-40, 41-60, 61-80, and everything above 80. That five-row block is exactly the input a histogram chart needs. FREQUENCY produces the counts a histogram needs in one step, and its off-by-one output is the detail that makes or breaks the chart. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “excel frequency function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Allowing only as many output cells as bins, which drops the final overflow count.
  • Bins in the wrong order — they must ascend, or the counts are meaningless.
  • Misreading the boundaries: a value exactly equal to a bin bound falls in that bin, not the next.

Frequently asked questions

Why does FREQUENCY return one more value than I have bins?

The extra element counts everything above the highest bin. It is not an error, and dropping it loses data.

Are the bin boundaries inclusive?

Yes at the top: each bin counts values greater than the previous bound and less than or equal to its own.

Can I use COUNTIFS instead?

Yes, and it is often clearer: =COUNTIFS(range,">20",range,"<=40") counts one band with visible boundaries.

Other ways people ask this

On the way here you may have searched this as “excel function frequency”, “how to use the frequency function in excel” and “how to use frequency function in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “excel function frequency”, “how to use the frequency function in excel”, “how to use frequency function in excel” all point at the one operation explained on this page, which is why they all lead here.