×

Count Characters in Excel

Microsoft Excel is used to perform calculations for multiple purposes. The data entered in the worksheet is a combination of numeric and alphabets. Sometimes there is a need to check the number of characters in the cell. Excel provides a default function called LEN, which counts letters, numeric values, characters and spaces. In this tutorial, the steps to count the characters are explained briefly.

1. How to count the characters in the cell?

To count the characters, steps to be followed are:

Step 1: Enter the data in the respective cell.

Step 2: Select the cell, where the result to be displayed. Here cell B1 is selected.

Step 3: In cell B1, enter the formula as =LEN (A1). Here A1 is the cell containing data.

Count Characters in Excel

In the above spreadsheet, the formula counts the exact characters in cell A1 including apostrophe marks. “Hello Google” contains exactly fourteen characters, and the LEN function includes 11 letters, 1 space and two sets of the apostrophe.

2. How to count the characters in the range of cells?

To count the characters in the range of cells SUM and LEN function is used. The steps to be followed are,

Step 1: Enter the data in the respective row or columns. Here the data are entered in the cell range from A1:A5

Step 2: Select the new cell, where you want to display the result. Here the cell A6 is selected.

Step 3: Enter the formula in the cell A6 as =SUM(LEN(A1)+LEN(A2)+LEN(A3)+LEN(A4)+LEN(A5)). A1 to A5 are described as data range. The data range can be changed based upon the data entered in the cell.

Count Characters in Excel

From the worksheet, the total character present in the data range including spaces, apostrophe, numeric and alphabet values from A1:A5 are 51 which is calculated using the function called LEN and SUM.

3. How to count the range of cells using array formula?

An alternative method to count the range of cells is using an array formula. Using the default formula is a longer one.

The steps to be followed are,

Step 1: Enter the data in the spreadsheet. Here the data are entered in range from A1:A5.

Step 2: Select the new cell, where you want to display the result. Here the cell B1 is selected.

Step 3: Enter the formula in the cell B1 as, =SUM (LEN (A1:A5)). Here A1:A5 is called cell range.

Count Characters in Excel

From the above worksheet, the data range A1:A5 is calculated using the array formula. The array constant {14, 9, 9, 8, 11} is used as an argument for the SUM function. The result is displayed as 51 which count the exact characters in the selected cell.

This formula is simply works in Excel 365 or Excel 2021. One can press Enter key after finish typing the formula. For prior versions, press CTRL+SHIFT+ENTER. A curly brace will present in the formula.

4. How to count the specific characters in the cell?

Sometimes, there is a need to count the specific characters in the cell. Excel provides the default function called “SUBSTITUTE” and “LEN” which calculates the specific characters in the cell. The steps to be followed are,

Step 1: Enter the data in the cell. Here the data entered in the cell are A1

Step 2: Select the cell where you want to display the result. Here the cell B1 is selected.

Step 3: In the cell enter the formula as =LEN (A1)-LEN (SUBSTITUTE (A1,”o”,””)). Here ‘o’ indicates, how many times the letter is repeated.

Count Characters in Excel

From the above worksheet, the letter “o” is repeated three times. The substitute function is used to replaces the character (second argument) with an empty string (third argument). LEN (SUBSTITUTE (A1,”o”,””)) equals 11. Here “11” is the length of the string without the character o. If 11 is subtracted from 14(total characters present in cell A1), the result is 3. Therefore 3 times the letter o is repeated.

5. How to calculate the specific characters using array formula?

To calculate the specific characters using array formula, the steps to be followed are,

Step 1: Enter the data in the cell range. Here the data are entered in the range A1:A5

Step 2: Select the cell where you want to display the result. Here cell range A6 is selected.

Step 3: Enter the formula in the cell A6 as =SUM (LEN (A1:A5)-LEN (SUBSTITUTE (A1:A5,”a”,””))).

Count Characters in Excel

From the above worksheet, the result is displayed as “5” in the cell A6. From the formula the array constant {1, 3, 1} is used as an argument for the SUM function which displays the result as 5. Here the function called SUBSTITUTE is case-sensitive where the capital letter “A” is not selected while counting.

6. How to calculate the lower and uppercase of a Specific character?

To calculate both the lower and upper case in a specific character using array formula, steps to be followed are,

Step 1: Enter the data in the cell range. Here the data are entered in the range A1:A5

Step 2: Select the cell where you want to display the result. Here cell range A6 is selected.

Step 3: Enter the formula in the cell A6 as =SUM (LEN (A1:A5)-LEN (SUBSTITUTE (LOWER (A1:A5),”a”,””))).

Count Characters in Excel

The above worksheet shows the result as “6” in cell A6. The function “LOWER” is used to convert all the letters to lowercase and counts the number of specific characters in the data. The argument {2, 3, 1} is used as an argument for the SUM function.

Summary

From the above tutorial, the various method and functions to count the characters is explained briefly.


Related Topics

Excel EDATE() Function

Excel EDATE() Function The EDATE() function in excel returns the serial number of the date that is the indicated number of months before or after the start date. Syntax EDATE(Start_Date, Month) Parameter Start_Date(required)- This parameter represents...

1 minute read.

Basics of Excel

Different ways to open an excel file There are various ways to open an excel file, some of them are listed below - From Start Menu:Go to the start menu and search for Ms-Excel...

5 minutes read.

Array Formula in Excel

How to use Array Formula in Excel? By default, Excel consists of various formulas for calculating the data. Among various formulas, the Array formula is a powerful one that is used...

8 minutes read.

Thermometer Chart in the Microsoft Excel

It was known that the thermometer chart is basically based on a single data point and that in turn could be used to show the achievement percentage. It primarily depends...

7 minutes read.

Excel SEARCH() Function

The SEARCH() function in excel finds one text value within another. It is the same, unlike FIND() function, with the only difference that it in a case-insensitive function. Syntax SEARCH (find_text, within_text, [start_num]) Parameter...

1 minute read.

How to use Index and Match in Excel?

The Index and Match function is a familiar and frequently used function in Excel. It is one of the most powerful functions and is easy to use. By default, Excel...

6 minutes read.

Excel MATCH () Function

Excel MATCH () Function The MATCH () function in excel locates the position of a lookup value in a row, column, or table and returns the relative position of an item in an array. Syntax MATCH...

2 minutes read.

Cells and Ranges in Excel

Cells and Ranges Each cell is identified by its cell address, which is a combination of the column and row on which that cell is situated. A group of cells together are called ‘Range’. When...

5 minutes read.

Pivots Table in Excel

What is a Pivot? A pivot table is a tool to create summary reports from data-sets irrespective of their sizes but is helpful even if the data is more than just...

5 minutes read.

How to apply Data Protection to the Worksheet?

What do we mean by Data Protection? Data Protection in excel involves in protecting your file/data from some other user and also prevents the following accidents – Accidentally deleting or changing the formulas in...

3 minutes read.

Excel INT() Function

Excel INT() Function The INT() function in excel is used to round a number down to the nearest integer. It removes decimal points from any number value & return rounded down number value in...

1 minute read.

How to create drop down in excel?

How to create drop down in excel? Drop-down lists are mostly used to facilitate data entry operations. They are commonly used in interactive websites or applications. Microsoft has expanded his Excel's data validation feature...

5 minutes read.

Count Cells with Text in Excel

Excel spreadsheets are widely used in many fields to store and analyze data. Usually, the cells present in excel are a combination of numbers and text. To perform the calculation...

3 minutes read.

What do you understand by Combination Chart in Microsoft Excel?

In Microsoft Excel, an individual has the Combo Chart option available, which can be effectively clubbed into two charts types, which are Column Clusters Chart, Line Chart to get the...

7 minutes read.

Excel WEEKDAY() Function

The WEEKDAY () function in excel returns number from 1 (Sunday) to 7 (Saturday) identifying the day of the week based on its date. This function Default return is - Sunday would be...

1 minute read.

Excel IFERROR() Function

The IFERROR() function in excel returns the specified value if initially supplied the argument or formula returns an error, otherwise returns the result of the formula supplied in the first argument. When...

2 minutes read.

Sum Every Nth Row in Microsoft Excel

The main and the critical use of the SUM Function is used to add all the amounts of the numerical data and thus efficiently produce the sum of all at...

3 minutes read.

Unique Values in Excel

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

SumIF Formula in Microsoft Excel

SUMIF Formula in Microsoft Excel is considered the primary and vital formula individuals can use to remove their workload. In this tutorial, we will discuss and learn about the SUMIF Formula...

7 minutes read.

Solver in Excel

What is Solver? Microsoft Excel facilitates an add-in programming tool known as Solver that uses operational research techniques to find the optimal solutions for objective problems. This tool operates with a group of...

5 minutes read.