Skip to main content

Count values

Go through a list line by line, count the occurrences of each value and get a clear frequency summary that pastes straight into a spreadsheet.

  • Clipboard

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Count

Was this tool useful?

How does this tool work?

Count how often each value occurs in a list without opening a spreadsheet. Enter one item per line to get the frequency of repeated values and see which ones appear most often. Settings let you ignore differences in letter case and stray spaces.

The tool goes through the lines and groups those that match according to the chosen options. By default, the comparison ignores upper and lower case and trims spaces at the start and end of each line. So “Paris”, “paris” and “Paris” followed by a space all add to the same total, shown under the first spelling met. Switch these options off if the variants mean something in your data. Results run from the most to the least frequent value, then alphabetically when counts are equal. A frequency is a number of occurrences, not a percentage. Empty lines are ignored. Counting does not fix typos or differences in wording: “bike” and “bicycle” stay separate values. To read the results correctly, keep the original list and check the normalisation rules. A frequency table answers a different question from a deduplicated list: it tells you not only which values exist but also how many times each one appears. That matters whenever repetition carries meaning, for example when summarising survey answers or spotting the most common categories in an inventory. Before reading the figures, check that the labels are consistent: a spelling mistake creates a separate category. Do not confuse the number of occurrences with the number of unique people or objects: several lines may come from the same source. To get a percentage, divide a value’s frequency by the total of relevant occurrences and multiply by one hundred. If you are writing a report, state the normalisation rules and the scope of the data clearly.

How to use this tool

  1. Paste the list

    Enter one value per line in the field.

  2. Set the comparison

    Choose how letter case and edge spaces are handled.

  3. Read the frequencies

    Check the counts and any input variants.

Use cases

Analysing short answers

Count how many times each answer appears in a list taken from a questionnaire, after checking spelling variants.

Checking a category export

Find the most frequent categories in an inventory or export without changing the source.

Spotting repeated entries

Measure how often a reference occurs before deciding whether to keep or remove the duplicates.

Examples

Three values, two categories

Each output line holds the value, a tab and its number of occurrences, from most to least frequent.

Input

A
B
A

Result

A	2
B	1

Case variants

With case ignored, “Paris” and “paris” are grouped under the first spelling encountered.

Input

Paris
paris
Lyon

Result

Paris	2
Lyon	1

Tips and best practices

  • A raw frequency is not a percentage: you need the total number of answers to work out a share.
  • Depending on the options, different spellings may be grouped together.
  • Keep the original data to check values and their context.
  • The result is tab-separated, so pasting it into a spreadsheet fills two columns at once.

Frequently asked questions

Does letter case affect the count?

Not by default: “Paris” and “paris” are counted together. Switch the option off to count them separately.

Are spaces at the edges of lines ignored?

Yes by default. If you switch the option off, a value followed by a space becomes a separate category.

Is a frequency a percentage?

No, it is a number of occurrences. Divide it by the total of counted lines to get a share.

In what order are the values shown?

From most to least frequent; values with the same count are listed alphabetically.

Are typos corrected?

No. Values spelled differently are never merged automatically, so check variants before grouping the results.

Related tools

Tools similar or complementary to this one.

Similar tools

Analyse a text and get its number of words, characters, lines, sentences and paragraphs.

Text & writingFeaturedUse this tool

Compare two texts line by line and quickly spot additions, deletions and changes.

Text & writingFeaturedUse this tool

Estimate how easy a text is to read with the Flesch reading ease score.

Text & writingUse this tool