Excel Len Function

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

Description

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.

Syntax

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.

Example

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

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 ...

How to Count the Number of Letters or Numbers separately in a Cell in Excel
count number of letters3

This post will guide you how to count the number of a given character in a cell in Excel. How do I count only numbers within a single cell excluding all letters and other characters with a formula in Excel. ...

How to Extract Text between Two Text Strings in Excel
extract text between two words1

This post will guide you how to extract text between two given text strings in Excel. How do I get text string between two words with a formula in Excel. Extract Text between Two Text Strings Assuming that you have ...

How to Remove the First/Last Word from Text string in Cell
remove first last word in cell2

This post will guide you how to remove the first and the last word from a text string in cells in Excel. How do I use a formula to remove first and last word of a text string in Excel. ...

Sidebar