Formulas for Counting the Rows that Contain Specific Values in Excel!!
Tags: excelformula, excelformulas
Published: 2020-11-07 11:55:18

---
title: Formulas for Counting the Rows that Contain Specific Values in Excel!!
published: true
date: 2020-11-07 09:02:27 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/formulas-for-counting-the-rows-that-contain-specific-values-in-excel/
---

In this short tutorial, we will discuss the **Formulas for counting the rows that contain specific values In Excel Office 365**. Let’s get into this article!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

![Formulas to count rows that contain specific values](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/11/Formulas-to-count-rows-that-contain-specific-values.png)<figcaption id="caption-attachment-17067">Formulas to count rows that contain specific values</figcaption>
## General Formula:

- To count the rows that contain specific values in Excel, use the below formula.

**=[SUM](https://geekexcel.com/sum-function/)(–([MMULT](https://geekexcel.com/use-mmult-function-in-microsoft-excel-365-simple-methods/)(–(data=X),[TRANSPOSE](https://geekexcel.com/how-to-use-transpose-function-in-microsoft-excel-365/)([COLUMN](https://geekexcel.com/use-column-function-in-microsoft-excel-365-simple-methods/)(data)))>0))**

## Syntax Explanations:

- **SUM** – In Excel, the [**SUM Function**](https://geekexcel.com/sum-function/) helps to add the values in the cells.
- **MMULT** – This function will return the matrix product of two arrays. Read more on the [**MMULT Function**](https://geekexcel.com/use-mmult-function-in-microsoft-excel-365-simple-methods/).
- **TRANSPOSE** – It helps to change the orientation of a given range or array. Read more on the [**TRANSPOSE Function**](https://geekexcel.com/how-to-use-transpose-function-in-microsoft-excel-365/).
- **COLUMN** – The [**COLUMN Function**](https://geekexcel.com/use-column-function-in-microsoft-excel-365-simple-methods/) in Excel returns the column number for reference.
- **Data** – It represents the input range from your worksheet.
- **(X) Criteria** – It is the specific value that you want to be count.
- **Comma symbol (,)** – It is a separator which helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Example:

- In the below example, we will show how to count the rows that contain a specific value.
- First, we will give the input values in **Column C** and **Column D**.
- Then, enter the given formula in the selected field.
- After applying the formula, **Press (CTRL + SHIFT + ENTER)** Keys.
- Finally, we will get the result in the selected **Cell G3** as given below.

![Example](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/11/Example-26.png)<figcaption id="caption-attachment-17068">Example</figcaption>

## Closure:

In the above article, we have discussed the **Formulas for counting the rows that contain specific values in Excel Office 365**. Hope you like this article. If you have any **suggestions,** feel free to share it with us. Thank you so much for Visiting Our Site!! Continue learning on **[Geek Excel](https://geekexcel.com/)!! **and [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!!**

### Read Also:

- **[Formulas to Sum Bold Values or Numbers Only ~ Simple Method!!](https://geekexcel.com/formulas-to-sum-bold-values-or-numbers-only-simple-method/)**
- [**Excel Formulas to Count the Paired Items from a Listed Combination!!**](https://geekexcel.com/excel-formulas-to-count-the-paired-items-from-a-listed-combination/)