Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Frequency Function Example
  • How To Filter Data in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How to count table rows in Excel
  • How to Use Solver Tool in Excel

References

  • How to use Excel INDIRECT Function
  • How to get first row number in range in Excel
  • Lookup entire row in Excel
  • How to use Excel TRANSPOSE Function
  • How to use Excel MATCH Function

Data Validations

  • Excel Data validation number multiple 100
  • Excel Data validation must not contain
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year
  • Excel Data validation exists in list

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.

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.

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:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon 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

Logical Functions

  • IF with boolean logic in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Invoice status with nested if in Excel

Date Time

  • Pad week numbers with zeros in Excel
  • Calculate date overlap in days in Excel
  • Add business days to date in Excel
  • Count dates in current month in Excel
  • Display the current date and time in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Map inputs to arbitrary values in Excel
  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel
  • Calculate conditional mode with criteria in Excel

General

  • How to set or clear a print area in Excel Worksheet
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • How to calculate percentage discount in Excel
  • Count cells that do not contain many strings in Excel
  • Lock Cells in a Worksheet Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning