Count how often a value appears in Excel: helpful tips

Excel, Microsoft's powerful spreadsheet software, is indispensable in the world of data analysis, finance, and administration. One of the common tasks users perform is counting how often a specific value appears in a data set. This may seem like a simple task, but Excel offers several methods for doing this efficiently and effectively. In this article, we explore useful tips and techniques for counting the number of times a value occurs in Excel, From basic functions to advanced formulas.

Excel count how many times a value occurs

Understanding the basics: the FUNCTION NUMBER.ALS

The most direct way to count how many times a specific value appears in a series of cells is to use the NUMBER.ALS function. This function examines a series of cells and counts the number of times a particular value appears.


How do you use NUMBER.ALS?

Suppose you have a list of sales figures and you want to know how often a particular sales figure appears in the list. The formula would look like this:


=AANTAL.ALS(Range; Criteria)

Example ' '


Hereby Range the set of cells you want to examine and Criteria the specific value you count.


Multiple criteria: NUMBERS.IF

What if you want to count how many times a value occurs based on multiple criteria? Then the function NUMBERS.ALS comes in handy.


Application of NUMBERS.ALS

This function works similar to NUMBER.ALS, but lets you specify multiple ranges and criteria. An example formula would be:


=A NUMBERS.IF(Range1; Criteria1; Range2; Criteria2)

Dynamic counting with conditional formatting

Conditional formatting in Excel can also be used to visually identify how often a value occurs by highlighting cells with specific values.


Steps for conditional formatting

  1. Select the range in which you want to count the values.
  2. Go to the tab Start > Conditional formatting.
  3. Select New rule and select the type of rule you want to use.
  4. Enter your criteria and choose a formatting style.

Advanced counting with matrix formulas

Matrix formulas provide a powerful way to perform complex calculations, such as counting values that satisfy multiple criteria.


Use of matrix formulas

An example of an array formula that counts how often a value occurs is:


=SOM(IF(range=criteria; 1; 0))

This formula must be closed with Ctrl+Shift+Enter, not just Enter.


Tips for efficient data management

  1. Use tables: By setting up your data as a table, you ensure that your formulas are automatically updated as you add new data.
  2. Name your reach: This makes your formulas easier to read and maintain.

Common pitfalls and how to avoid them

  • Non-specific criteria: Make sure your criteria are clear and specific to avoid inaccurate counts.
  • Overlooked duplicates: Be aware of duplicates in your dataset that may affect your count.


Counting how many times a value occurs in Excel can be easy with the right knowledge and tools. Whether you choose the simplicity of NUMBER.ALS, the flexibility of NUMBER.ALS, the visual power of conditional formatting, or the advanced capabilities of array formulas, each of these methods can help you gain quick and efficient insights into your data. By mastering these techniques, you can not only determine the frequency of specific values in your data set, but also gain deeper insights that can be critical to both business decision-making and personal projects.


Managing data efficiently and interpreting results correctly requires a thorough understanding of Excel's toolbox. By experimenting with and learning from the various features Excel offers, you can further develop your skills and take your analyses to the next level. Remember that Excel's strength lies in its flexibility: there is often more than one way to achieve a goal, so choose the method that best suits your specific needs.

Frequently Asked Questions

Both NUMBER.ALS and NUMBER.ALS can handle text criteria. Be sure to place text criteria in quotation marks ("") in your formula.

NUMBERS.ALS allows you to specify multiple ranges and associated criteria, allowing you to count values across multiple columns.

By default, NUMBER.ALS and NUMBER.ALS also count hidden or filtered cells. To count only visible cells, you can use the SUBTOTAL function in conjunction with your count.

Yes, NUMBERS.ALS supports up to 127 range/criteria pairs. This should be sufficient for most practical applications.

To count empty cells, use NUMBER.ALS or NUMBER.ALS with "" as criteria. If you specifically want to count non-empty cells, you can use "" (not equal to empty) as criteria.

Don't want to miss a Blog or News article? Quickly subscribe to the newsletter