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

Data Analysis

  • Create Scatter Chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How to create a Histogram in Excel
  • Filter Data Based on Date in Excel
  • How to Create Area Chart in Excel

References

  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel MATCH Function
  • Count rows that contain specific values in Excel
  • How to get address of first cell in range in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation date in next 30 days
  • Excel Data validation must contain specific text
  • Excel Data validation only dates between
  • Excel Data validation require unique number

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

  • How to use Excel AND Function
  • How to return blank in place of #DIV/0! error in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples
  • IF function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get week number from date in Excel
  • How to get workdays between dates in Excel
  • Find Last Day of the Month in Excel
  • Next biweekly payday from date in Excel
  • How to calculate months between dates in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel

General

  • Subtotal by color in Excel
  • Count cells that do not contain many strings in Excel
  • Spell Check in Excel
  • Count cells that do not contain errors in Excel
  • Subtotal by invoice number in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning