Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • How to get last row in text data in Excel
  • Last row number in range
  • How to get last row in numeric data in Excel
  • How to use Excel VLOOKUP Function
  • MATCH function: Description, Usage, Syntax, Examples and Explanation

Data Analysis Examples

  • Get column index in Excel Table
  • Conditional Formatting Icon Sets Examples in Excel
  • How to calculate current stock or inventory in Excel
  • How to create Gauge Chart in Excel
  • Filter Data Based on Date in Excel

Data Validation Examples

  • Excel Data validation must begin with
  • Excel Data validation require unique number
  • How To Create Drop-down List in Excel
  • Excel Data validation exists in list
  • Excel Data validation number multiple 100

Count cells ‘equal to’ in Excel

by

This tutorial shows how to Count cells ‘equal to’ in Excel using the example below;

Formula

=COUNTIF(range,value)

Explanation

To count the number of cells equal to a specific values, you can use the COUNTIF function.

Worked Example:   Simple Excel Formulas and Functions

In the example shown, G6 contains this formula:

=COUNTIF(D5:D11,"red")

How this formula works

The COUNTIF function is fully automatic — it counts the number of cells in a range that match the supplied criteria.

Worked Example:   Count Unique Values in Excel

For range, we use D5:D11, which contains colors. For criteria, we simply use “red”.

COUNTIF returns the count of values in D5:D11 that are equal to “red”.

Note: when text values are supplied directly as criteria, they need to be enclosed double quotes (“”). If you have a criteria in another cell, you can supply the cell address as criteria without quotes, as seen in this example.

Post navigation

Previous Post:

Count cells that do not contain many strings in Excel

Next Post:

Count cells between two numbers in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to split text with delimiter in Excel
  • How to add a line break with a formula while joining text strings in Excel
  • How to check cell contains which things in Excel
  • SUBSTITUTE function: Description, Usage, Syntax, Examples and Explanation
  • MID, MIDB functions: Description, Usage, Syntax, Examples and Explanation
  • Convert Excel time to decimal minutes
  • Check If Two Dates are same month in Excel
  • How to calculate percent of year complete in Excel
  • How to determine year is a leap year in Excel
  • Convert Excel time to Unix time in Excel
  • TBILLYIELD function: Description, Usage, Syntax, Examples and Explanation
  • YIELDMAT function: Description, Usage, Syntax, Examples and Explanation
  • DB function: Description, Usage, Syntax, Examples and Explanation
  • FV function: Description, Usage, Syntax, Examples and Explanation
  • COUPDAYBS function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles