Calculate Length of Text String in Excel



In this blog post we will learn to calculate length of text string in excel. To calculate length of text string we will use “LEN” function in excel.

Where to find LEN function on Excel Screen:

LEN function can be found under “Text Function” category under “Formula Tab” as shown in below image:



Once we click on “Text” category, we can see list of various Text Functions available in excel. “LEN” function is highlighted in red in below image.



Once we click on LEN option as highlighted above, we will get the function argument dialog box as shown in below image:



Syntax of LEN Function:

The Syntax of LEN function is as below:

=LEN(text)



Arguments of LEN Function:

To use the LEN function we have to use only one argument:

Text: This is only one and mandatory argument. We have to select the text for which we have to calculate text length.

Example of LEN Function:

Let’s learn about using this function with the help of simple example. We have listed text strings in column B as shown in below image.



Now, we want to calculate the length of each text string which is listed in column B. To do this we can use LEN function.

For this, select the cell in which we want to calculate text length. In this case we have selected cell “C2”. In cell C2 enter formula as shown in below image.


Once we hit enter button, we can see that length of text string which is present in cell B2 is calculated in cell C2.


We have to just copy and paste this formula in below cells to get desired result.


In this way, we can use LEN function in excel to calculate length of text string.

Comments

Related Topics..

Fill Up, Down, Right & Left in Excel

Excel Shortcuts Ctrl A to Ctrl Z

Select all cells highlighted with specific color at a time

How to Remove Duplicate Entries from Multiple Columns in Excel

Excel Pivot Table

Exploring Font Colors and Fill Colors in Excel

Insert Multiple Rows in Excel Based On Cell Value

Doughnut Chart in Excel

Conditional Formatting:Highlighting Above Average and Below Average Values

Bold, Italic and Underline Commands from Font Group