A frequency table is the count of how often each distinct value appears in a data set, usually laid out in two columns — value and tally — plus percentage and cumulative columns when you need them. You can build one by hand for under about 30 rows, or in any spreadsheet with COUNTIF, FREQUENCY, or a pivot table. The working rule: decide your classes before you count, because a frequency table answers only the questions its boundaries ask.
The core craft is deciding what a "value" is before you start tallying. A raw survey file with 12 answers that read "very satisfied," "satisfied," and "VERY satisfied" is not one data set, it's three. Most bad frequency tables are counting errors that happened before anyone reached for the data.
Decide whether your data is categorical or numerical first
Categorical data has distinct labels — red, blue, green, or pass/fail. A frequency table is the complete answer for this type: every label you find gets a row, and the rows plus the total reconstruct the data set exactly. Set the rule now: one row per distinct label, sorted by count descending if you want a ranked profile or alphabetically if you want a reference sheet.
Numerical data comes in two flavors and they behave differently. Discrete values — number of children, number of claims per policy — can often be tabulated value-by-value without grouping. Continuous measurements — height, income, response time — need class intervals (bins), and once you bin, the detail is gone. Count the ages of 200 people in five-year bands and you can no longer report that anyone is 41.
The decision rule is about downstream use. If a reader needs to find any individual record, keep value-by-value tables or enough bins to keep counts small. If a reader needs a shape, use 5 to 10 bins. The symmetry is the tell: a numeric value-by-value table where every row shows a count of 1 is a list, not a frequency table — the data isn't repeated yet.
Watch for the mixed case that catches people mid-task. A column of "number of rooms" reads as numbers but is really a category, and squaring it is meaningless. A column of 1/2/3 coded survey answers (disagree/neutral/agree) is also categorical. Sort by type, not by spreadsheet formatting.
Prepare the data before counting anything
Four cleaning decisions change the count and should be made explicitly. First, missing values: blank cells, "N/A," and "refused" are not a value, and lumping them into one row silently reports that missingness as if it were an answer. Report it as its own labeled row, or state the excluded count.
Second, case and whitespace. Trailing spaces turn "Yes" and "Yes " into two categories in older tools and in strict exact-match counting. Normalize with TRIM and a consistent casing label, or the table will show phantom rows that add up to the same real answer. Third, synonyms: "ok," "fine," and "acceptable" are the same response unless you decide otherwise, and the mapping belongs in a written note — keep a hidden crosswalk column rather than overwriting the raw values.
Fourth, data type. Text-formatted numbers report as "001," "002" instead of 1 and 2, and dates can arrive as text strings that never group correctly. Value errors are common when the data was exported, not typed, and a quick sort often catches them: any number that ranks above 9 when sorted numerically is a text impostor. Fix types before the table, not after.
Keep a copy of the raw column and work from a duplicate. A cleaned column has provenance — one anchor row of exclusions and remappings — and that habit saves the explanation later. One-record anomalies are worth checking at this stage too: an age of 999 or a reading of 0 in a field that can't be zero is usually a placeholder, not a measurement.
If you're batching the job, the pre-flight check is three minutes and prevents rework. Type-check one column, run a duplicate check, count blanks. Confirm the row count matches the source system's export total before you trust any frequency number.
Build the table by hand with tallies: seven ordered steps
This is the sequence for a small-to-medium set where you want to see every record counted. Validate one small check before the main pass.
1: Count your total rows and write it at the top of the page. The total is the acceptance test everything else answers to. 2: Sort or scan the column and list each distinct value once in the first column, in the order you'll present (ranked by count or logical order). For grouped data, write your class boundaries now, not later. 3: Walk the records one at a time and add a tally mark into the row for each record's value. Group marks in fives for fast counting — the standard four-bar gate. 4: Convert each group of tally marks into a number and enter it in the frequency column. Do it only now, not as you go, so an interrupted pass doesn't corrupt the total. 5: Add a column to check: the frequencies must sum to the total from step 1. If they don't, the gap is the number of uncounted or double-counted records, and that number tells you where to look. 6: Compute relative frequency by dividing each count by the total and multiplying by 100. Round consistently and note the rounding; percentages that total 99.8% are expected, not an error, and a note saying so prevents a second review. 7: Add cumulative frequency, running down the rows, only when the table's order is meaningful — ranked from most frequent or from low to high value. A cumulative column on an alphabetical categorical list is nonsense.
Two checks catch most failures. The sum test in step 5 is the acceptance criterion the whole method hangs on. The second is a spot check: pick one row and count the matching records in the source independently, then compare. If a row disagrees, the error is almost always a near-duplicate label, a stray space, or a missing value.
Then label it. Every frequency table needs a title naming the variable, units, and the time window or source, plus a note saying whether missing values are included. That one line saves the table from a review meeting spent on what "62%" actually refers to.
The class-width formula that fixes your bins and the boundary bug
For grouped numeric data, the common starting point is Sturges' rule, formalized by Herbert Sturges in 1926: k bins = 1 + 3.322 × log10(n). For 100 records that gives 7.64, so 7 or 8 bins; for 500, it's 9.97, so 10. It's a starting point, not an obligation — round to a convenient class width a reader can follow.
To set the width, class width = (max − min) ÷ number of classes, then round up to something friendly: 2, 5, 10, or a natural unit like $1,000 or 5 years. With a minimum of 18 and maximum of 65 and 8 classes, the raw width is 5.9 — use 6 and start the first class at 18. From 18 with a width of 6, the boundaries are 18, 24, 30, 36, 42, 48, 54, 60, 66 — eight classes, and the top one closes at 66 to hold the 65.
Boundary convention is the rule to state explicitly. Use "lower bound inclusive, upper bound exclusive": 18–<24, 24–<30, and so on. The other common convention, "18–23, 24–29" for whole-number data, causes overlap at 24 if you're not careful. State the convention in a footnote, because adjacent boundary values are one of the top failure cases in statistics teaching materials.
Two more failures worth knowing. If the first class starts below the true minimum, the table suggests data that doesn't exist; class intervals must cover the real range and no further. And class interval is not the same as class width — the interval is the pair of endpoints, the width is the span between adjacent lower bounds. Label the column one thing consistently.
Build it in a spreadsheet with COUNTIF, FREQUENCY, or a pivot table
Three routes give the same table, and they suit different jobs. Sort-and-delete-duplicates plus COUNTIF is the most readable; FREQUENCY is the fastest for grouped data; a pivot table is the fastest for repeated work and updated data. COUNTIF with a wildcard (COUNTIF(range,"x")) matches text that contains a value — it is not a frequency exact-match, so a wildcard query must be checked by eye.
| Method | Best for | Gets right | Watch for |
|---|---|---|---|
| COUNTIF over unique values | Categorical columns and value-by-value numeric | Readable, one row per label, audit-friendly | Trailing spaces and case duplicates create phantom rows |
| COUNTIFS with two columns | Cross-sales of two variables | Answers "count of A where B is X" | A row must satisfy both criteria; one typo excludes it silently |
| FREQUENCY array formula | Grouped continuous data | Fast bin assembly, top bin catches extremes | Can't start at 0 by habit; bins are left-closed by definition |
| Make-Array-FREQUENCY/pivot table | Repeat work or refreshed data | Auto-rebuild, group by quarter or year | Optimal grouping defaults may be too few or too many |
COUNTIF ignores case but not whitespace, so the exact-match habit — or LOWER with TRIM first — decides whether "Yes" and "yes " are one row or two. FREQUENCY always creates a final bin for everything above the last break, and that top bin catches high outliers rather than silently dropping them. A pivot table embeds date grouping: group dates by year and the table sums across months; the group field can hide transactions below your minimum of zero when the source has no rows for a month — turn on "show items with no data" so gaps read as zero.
The formulas fail silently, which is what to anticipate. A COUNTIF that references a wrong column returns a plausible count of something else. A text-final duplicate that isn't caught can inflate one row and shrink another while the total stays the same, which is why the sum-of-frequencies test matters here most of all. If you have pivot-adjacent data errors, the tool can't fix the source.
Before publishing any spreadsheet column of labels, select it and run remove-duplicates, but keep the cleaned copy. Print the table with its cell references once and let a second person reconcile the top three rows. That single extra check catches the errors that survive every formula.
Ranked, relative, and cumulative columns answer different questions
A count column answers "how many," a percentage column answers "what share," and a cumulative column answers "how many at or below this point." Each is right for a different reader. Marketing counts responses; finance reads shares; survey reviewers read the cumulative to find the median bin.
Relative frequency as a percentage = count ÷ total × 100. With 45 responses across four categories, a category with 19 returns 42.2% (19/45 = 0.4222). Round percentages to one decimal in most public tables; report the decimals you need and no more. A percentage without its denominator is the classic table defect, so show the total on the header row.
Cumulative frequency adds down the rows. On ranked-from-low data, the cumulative row where the total crosses half the total is the location of the median — that's the only thing cumulative tells you that counts don't. On the same table ranked from high, the cumulative is a decumulative total and the crossing happens from the other end. The direction must be named.
Conditions for percentage columns: percentages can tell you the shape of the response split in a table of 45 records but still summarize across languages and regions. If the categories include groups of unequal population — counties, departments, product lines — a raw count favors large groups. A per-capita or per-1,000 rate divides out the size difference; a plain percentage doesn't correct for it unless the denominator is per group. A rank-ordered count table of twelve categories is worse than a short list of the top four and a combined remainder row.
Where a column is derived from a small base, caveat it: 33.3% next to a count of 2 says less than a reviewer will assume. Show the count and the percentage side by side and don't suppress one for the other.
Cross-tabs and the two-variable table that answers the follow-up question
A one-way table counts one variable. The next question after "how many shipped late?" is usually "who?" or "which products?" A two-way frequency table (a cross-tab, contingency table) has one variable on the rows and the other on the columns, and each cell is the count of records in that pair. Totals along the right and bottom edges complete the table.
Build it in the same way you built the one-way version. Decide the two dimensions and their order, list the categories, tally each record once into exactly one cell, and add row and column totals with a grand total.
Cell totals must equal the grand total — the same acceptance test as before, now in two directions. For VLOOKUP-style conditional counts with two fields, the tool to use is COUNTIFS, which is stricter and more explicit than adding two COUNTIFs together.
The cross-tab's failure case is the zero that isn't. With 8 stores in a 20-store chain, a region column with 8 of 20 blanks will produce a row that's technically zero when the store wasn't open yet. Distinguish "no records" from "recorded as zero" — they mean different things to the reader and different things to operations.
Subgroup tables carry a sample-size caveat. A cell of 3 responses has a count worth reporting only with the base visible. Cross-tabs also hide the marginals: the row totals for a segment can stay stable while the cell values within it flip. Show row percentages when the reader's question is "within each segment, how did the split go," and column percentages when the question is "across segments, what share does each contribute."
Keep one frame that gives the equivalence: the grand total, its marginals, and its cells. If they don't agree, don't publish the percentages yet.
A worked example: 12 office visits with a clean total
Take a small set of appointment durations at an office in minutes: 12, 18, 18, 25, 25, 25, 33, 40, 40, 40, 40, 52. Total records: 12.
For a value-by-value count table, create rows for the distinct values — 12, 18, 25, 33, 40, 52 — with counts of 1, 2, 3, 1, 4, and 1. The frequencies sum to 12, which is the acceptance test. A rank-ordered version puts 40 first (4), then 25 (3), then 18 (2), then 12, 33, and 52 (1 each).
For a grouped version, the distance min to max is 52 − 12 = 40. With 6 classes the width is 40 ÷ 6 = 6.7, round to 10 for readability, starting at 10: 10–20, 20–30, 30–40, 40–50, and 50–60. Class counts are 3 (12, 18, 18), 3 (25 × 3), 1 (33), 4 (40 × 4), and 1 (52) — 12 again. The top class 50–60 holds 52, as it should.
Now the percentages. 4 of 12, or 33.3%, fall in 40–50. 5 of 12, or 41.7%, fall at or below 30 — and the class where the cumulative count crosses 6 (half of 12) is 20–30, which locates a median inside that bin without stating a specific value.
This is the arithmetic that shows why tiny interval tables mislead: with six categories and 12 records, one value moving shifts the shape of the profile. The acceptance test stays the same at any size — the sum is the truth.
Practice checks, common errors, and what a one-minute check catches
Five defects recur, most of which survive a hurried review and don't add up.
Losing records: total rows = sum of frequency column must hold before any percentages are calculated; find the gap first. Phantom labels from whitespace or case; detect via sorted duplicate check before you count. Missing values treated as a category, which reports "no data" as an answer. Percentages computed with different denominators down the same column. A half-total rounding convention: frequencies that should sum to 100% summing to 99.8% or 100.3%; a note that rounding explains it is expected and not a defect.
The boundary-blind read is specific to grouped tables. Start your first class below the true minimum and the table implies a zero you didn't measure. Set a top boundary below the maximum and an outlier has nowhere to land.
A visual check catches more errors than another formula in this class of task, but what the check can't do is fix a source. Both are needed: the column of counts totals, and the sorted source shows no streaky duplicates. Print the table with its cell references once and let a second person reconcile the top three rows. That's the practice proof.
Before you present a frequency table, ask one unopened question: does any single row quietly mix two populations — two languages, two years, two teams? If the labels look like one population but the counts suggest two peaks, that's the last failure case, and it's the one that changes a decision.
FAQ
Why does my frequency table total 99% instead of 100% when I add the percentages?
Because each percentage is rounded before summing, and the rounding errors accumulate unevenly. Two categories at 33.33% each round to 33.3% and leave 0.1% adrift. Show one more decimal, or add a footnote saying "percentages do not sum to 100 because of rounding." Neither changes any actual count. The counts still sum to the total, which is the test that matters.
Should missing values get a row in the frequency table?
Yes, with their own label — "missing," "refused," or "blank" — rather than folded into the largest category. If 12 of 300 records are blank, a table with 288 in total reads as if the data set were complete when 4% isn't. Reporting the 12 in a separate labeled row keeps the denominator honest and makes the size of the problem visible. Excluding them is a defensible decision, but state it.
What happens if the first class of my grouped table starts below the smallest value?
That class will attract no records and zero counts in the table. Sometimes editors defend it as "setting context," but it implies the range reaches further than the data does. If a true zero exists (minutes spent, dollars billed), a class starting at zero is valid; if the minimum is 18 in a set of measurements, starting at 0 quantifies a possibly empty stretch.
Can I build a frequency table in Excel for a column with 50,000 rows?
Yes, and the pivot table handles it without the formula drag on a single cell. The COUNTIF route also works, but the 50,000-row copy is where the whitespace and text-numbers errors survive longest, because nobody reviews that many rows by eye. Sort the duplicate labels first. On big data, the acceptance test (sum of frequencies against the source count) acts as the deliverable itself.
What's the difference between a frequency and a relative frequency in a table?
A frequency is the count of records in a category; a relative frequency is that count divided by the total number of records. The count of 4 in an office table of 12 records is the frequency; the 33.3% is the relative frequency. The count is the better audit figure because it's exactly deducible; the percentage is the better comparison figure because it travels across tables of different sizes.
What about sorted values ranking up to a grouped table — is a histogram the next step?
A histogram is a frequency table's grouped form drawn as bars, with adjacent bars touching because the classes are continuous. If the grouped table sums to the total and the class boundaries are stated, it can be drawn directly. The order of work matters: finish the table and test it before drawing the bars. A bar chart drawn from untested classes can be prettier than the table and wrong.
Can I create a cross-tab with more than two variables?
Not in a frequency table, no. Counting three variables together buries categories in cells that are mostly empty. Split the cross-tabs into pairs — region by product, then product by month — and read the marginals for the story. Each two-way table should reconcile to its totals; no amount of pairing removes the need for that sum test.