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

Data Analysis

  • How To Insert and Customize Sparklines in Excel
  • How to calculate average last N values in a table in Excel
  • Reverse List in Excel
  • Conditional Formatting Color Scales Examples in Excel
  • How To Create Frequency Distribution in Excel

References

  • How to use Excel LOOKUP Function
  • Vlookup Examples in Excel
  • Perform case-sensitive Lookup in Excel
  • Two-column Lookup in Excel
  • How to create dynamic named range with OFFSET in Excel

Data Validations

  • Excel Data validation require unique number
  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only
  • Excel Data validation unique values only
  • Excel Data validation no punctuation

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

  • Not Equal To ‘<>‘ operator in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel
  • Return blank if in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to calculate future date say 6 months ahead in Excel
  • Convert Excel time to decimal minutes
  • Basic Overtime Calculation Formula in Excel
  • Calculate retirement date in Excel
  • DAYS360 function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers with VLOOKUP in Excel
  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel

General

  • Basic numeric sort formula in Excel
  • Lock Cells in a Worksheet Excel
  • Mark Workbook as Final in Excel
  • How to calculate total from percentage in Excel
  • Delete Blank Rows at Once in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning