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

Data Analysis

  • Excel Frequency Function Example
  • Excel Bar Chart
  • How To Compare Two Lists in Excel
  • How to create Gauge Chart in Excel
  • Understanding Pivot Tables in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • CHOOSE function: Description, Usage, Syntax, Examples and Explanation
  • Offset in Excel
  • Last row number in range
  • Multi-criteria lookup and transpose in Excel

Data Validations

  • Excel Data validation date in specific year
  • Excel Data validation require unique number
  • Excel Data validation must not contain
  • Excel Data validation with conditional 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:   Basic numeric sort formula in Excel

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:   COUNTIF function: Description, Usage, Syntax, Examples and Explanation

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 FALSE Function

Next Post:

Large with criteria 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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel NOT Function
  • IF function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Convert date to text in Excel
  • How to calculate nth day of year in Excel
  • SECOND function: Description, Usage, Syntax, Examples and Explanation
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • Add business days to date in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group times into unequal buckets in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Map text to numbers in Excel

General

  • How to calculate percentage of total in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • How to get original price from percentage discount in Excel
  • Hide and Unhide Columns or Rows in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning