# How To Have Excel Count Cells With Certain Text

Microsoft Excel is an incredibly versatile tool that allows you to manipulate and analyze data in numerous ways. One such way is counting cells that contain specific text. This can be extremely useful when sifting through large data sets. In this guide, we will walk you through how to make Excel count cells with certain text.

## Using the COUNTIF Function

Excel includes several functions that can perform counts based on specific criteria. One of these is the COUNTIF function. It’s used when you want to count cells that meet a single criterion. Its syntax is as follows:

=COUNTIF(range, criteria)

Here, ‘range’ refers to the range of cells you want to count, and ‘criteria’ is the condition that must be met for a cell to be counted.

Let’s illustrate this with an example. Suppose we have a list of products in column A and we want to count the number of times “Apple” appears:

```    =COUNTIF(A2:A10, "Apple")
```

This formula will count all cells in the range A2:A10 that contain the text ‘Apple’.

## Using the COUNTIFS Function

For more complex criteria that involve multiple conditions, Excel provides the COUNTIFS function. Its syntax is as follows:

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2] …)

Each ‘criteria_range’ refers to the range of cells you want to evaluate, and each ‘criteria’ specifies the condition that must be met. Note that all criteria must be met for a cell to be counted.

For instance, suppose we want to count the number of cells in column A that contain ‘Apple’, and the corresponding cells in column B contain ‘Red’. The formula would be:

```    =COUNTIFS(A2:A10, "Apple", B2:B10, "Red")
```

This will count all cells in the range A2:A10 that contain ‘Apple’ and have corresponding cells in the range B2:B10 that contain ‘Red’.

## Conclusion

Using Excel to count cells with certain text can be a powerful tool for data analysis and manipulation. The COUNTIF and COUNTIFS functions provide flexible and scalable solutions to handle this task effectively. With a bit of practice, you can easily master these functions and increase your Excel efficiency.