Excel Len Function

This post will guide you how to use Excel LEN function with syntax and examples in Microsoft excel.


The Excel LEN function returns the length of a text string (the number of characters in a text string).

The LEN function is a build-in function in Microsoft Excel and it is categorized as a Text Function.

The LEFT function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.


The syntax of the LEN function is as below:

= LEN(text)

Where the LEFT function arguments are:
Text -This is a required argument. The text string that you want to get the length of.


The below examples will show you how to use Excel LEN Text function to get the length of a text string.

#1 To get the number of characters in the B1 cell, just using formula: =LEN(B1).

excel len function example1

#2 To get the Length of the text string in B2 Cell, just using formula:=LEN(B2)

excel len function example1

More Excel Len Function Examples

  • Count Number of Cells with String Length greater than X
    You can create a new formula based on the SUMPRODUCT function, the N function and the LEN function to check the string length of each cell and also get the total number that the string length is greater than number 10.……
  • Split Text and Numbers
    If you want to split text and numbers from one cell into two different cells, you can use a formula based on the FIND function, the LEFT function or the RIGHT function and the MIN function. .…
  • Sort Cells by Specific word or words
    how to sort cells or text values in a column based on a specific word even if the word is in the text string in the cell. How do I sort cells in a column by the number of a specific word or words in excel……
  • Sort List of Cells by Word Count
    If you want to sort the list by word count in excel, you need to create an excel formula based on the LEN function and the SUBSTITUTE function…….
  • Replace Last Comma in String with “and” word
    If you have a list of data (B1:B4) that contain the text string and each word is separated by comma character. And you want to replace the last comma character with a new word “and”.You need to create a new complex formula based on the SUBSTITUTE function, and the LEN function to achieve the result……..
  • Removing Salutation from Name
    To remove salutation from names string in excel, you can create a formula based on the RIGHT function, the LEN function and the FIND function……
  • Insert The File Path and Filename into Cell
    If you want to insert a file path and filename into a cell in your current worksheet, you can use the CELL function to create a formual……..
Related Posts

Abbreviate Names Or Words in Excel
abbreviate names1

As an MS Excel user, you might have come across a task where you need to abbreviate different names or words, and there are also possibilities that you might have done this task manually by assuming that there isn't any ...

Extract Last Two Words From Multiple Cells
extract last word from multiple cells1

Just assume that you have a few cells containing values/words and you want to extract the last two words from each cell into another separate cell; then you might think that it's not a big deal; because you would prefer ...

Extract Multiple Lines From A Cell

Suppose that you have listed some text in a single cell which is separated by the line break(you can do it by pressing ALT + ENTER after entering the text), and now you want to extract multiple lines of text ...

How to Count Cells More Than Certain number of Characters in Excel
count cells more than certain number8

This post will guide you how to count the number of cells that more than a certain number of characters in a given range cells using a formula in Excel 2013/2016.How do I count cells with length that greater than ...

How to Split Cells by the First Space in Texts in Excel
How to Split Cells by the First Space in Texts in Excel8

Sometimes we may use space to separate texts to different groups in one cell, if we want to split this cell to multiple columns refer to space, we can implement this via ‘Text to Columns’ feature. But is there any ...

How to Convert Uppercase to Lowercase Except the First Letter in Excel
Convert Uppercase to Lowercase 4

In excel, words can be entered in uppercase, lowercase or mixed. If we want to convert all uppercase to lowercase (except the first letter in some situations), we can use formula with some letter convert related functions to convert them ...

How to Remove Middle Name from Full Name in Excel
Remove Middle Name from Full Name 6

When we get a list of full names, we can remove the middle name for short in some cases. As the middle names are different among the full name list so we cannot replace them by space directly in excel. ...

How to Remove Last or Trailing Commas in Excel
remove last commas1

This post will guide you how to remove trailing commas from cell in Excel. How do I remove comma character at the end of a cell with a formula in Excel 2013/2016. Remove Trailing Commas if you want to remove ...

How to Count Comma Separated Value in One Cell in Excel
count value separated by comma2

This post will guide you how to count values in a single cell separated by commas with a formula in Excel. How do I count comma separated values in one cell in Excel 2013/2016. Is it possible to have a ...

How to Sort Column by Length of Cell Characters in Excel
sort column by length 6

This post will guide you how to sort column values by length of the characters in one column in Excel. How do I sort a list of column by character length in Excel 2013/2016. Sort Column by Length of Cell ...