The Excel LEN function returns the length of a supplied text string.
The syntax of the function is:
Where the text argument is the text string that you want to find the length of. This can be supplied to the Len function in any of the following ways:
The examples in the spreadsheet below show the Len function used to return the length of three different text strings (one of which is empty).
The formulas are shown in the spreadsheet on the left and the results are shown in the spreadsheet on the right.
Further information and examples of the Excel Len function are provided on the Microsoft Office website.