Excel Formulas to Count specific characters in a range ~ Easy Tricks!!
Tags: excelformula, excelformulas
Published: 2021-06-18 02:35:50

---
title: Excel Formulas to Count specific characters in a range ~ Easy Tricks!!
published: true
date: 2021-06-05 07:02:27 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-count-specific-characters-in-a-range/
---

In the previous post, we have learned the formulas to **[count the specific characters in a cell](https://geekexcel.com/excel-formulas-to-count-specific-characters-in-a-cell/)**. Likewise, here we will explain the simple formulas to **count the specific characters in a range of cells and sum all the values in Excel**. Let’s jump 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)

[![Count specific characters in a range](https://geekexcel.com/wp-content/uploads/2021/06/Count-specific-characters-in-a-range.png)](https://geekexcel.com/excel-formulas-to-count-specific-characters-in-a-range/count-specific-characters-in-a-range/#main)<figcaption id="caption-attachment-46108">Count specific characters in a range</figcaption>

## General Formula:

- Use the below formula to count a specific range of cells in Excel.

**=[SUMPRODUCT](https://geekexcel.com/how-to-use-excel-sumproduct-function-in-office-365/)([LEN](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)(range)-LEN([SUBSTITUTE](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)(range,text,””)))**

## Syntax Explanations:

- **LEN** – In Excel, the **[LEN function](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)** is used to find the length of the text string.
- **SUBSTITUTE** – This function helps to replace existing text with new text in a text string when you want to replace text based on its content, not position. Read more on the [**SUBSTITUTE function**](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/).
- **SUMPRODUCT** – It helps to multiply the corresponding arrays or ranges and returns the sum of the products. Read more on the **[SUMPRODUCT function](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)**.
- **Range** – It represents the input value.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.
- **Minus Operator (-)** – This symbol will help to subtract any two values.

## Practical Example:

Let’s consider the below example image.

- Here we will enter the input values in **Column B**.
- Now we need to count specific characters in a range of cells and sum the values.
- You can refer to the following article to [**count the specific characters**](https://geekexcel.com/excel-formulas-to-count-specific-characters-in-a-cell/).

![Input Ranges](https://geekexcel.com/wp-content/uploads/2021/06/Input-Ranges-12.png)<figcaption id="caption-attachment-46104">Input Ranges</figcaption>

- Then, select any cell and type the above-given formula.

![Enter the formulas](https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formulas.png)<figcaption id="caption-attachment-46106">Enter the formulas</figcaption>

- Finally, press the **ENTER**  key to get the result out, if you need, drag the fill handle over range to apply the formula.

![Result](https://geekexcel.com/wp-content/uploads/2021/06/1Result.png)<figcaption id="caption-attachment-46105">Result</figcaption>

## Wind-Up:

From this chapter, you can get to know the simple formulas to **count specific characters in a range of cells and sum the values in Excel**. Leave a **comment** or **reply** below to let me know what you think!

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Related Articles:

- **[Excel Formulas to Convert the String into Array ~ Quick Tricks!!](https://geekexcel.com/excel-formulas-to-convert-the-string-into-array/)**
- **[Excel Formulas to Count the Specific Keywords in the Cell ~ Easily!!](https://geekexcel.com/excel-formulas-to-count-the-specific-keywords-in-the-cell/)**
- **[How to Protect All Cells with Formulas using Macros in Excel 365?](https://geekexcel.com/how-to-protect-all-cells-with-formulas-using-macros-in-excel-365/)**
- **[How to Find the Last Column of Data in Excel Office 365?](https://geekexcel.com/how-to-find-the-last-column-of-data-in-excel-office-365/)**