LEN
Information Functions

Basic Description

The Excel LEN function returns the length of a supplied text string.

The syntax of the function is:

LEN( text )

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:

  • directly
  • as a text string returned from another formula
  • as a reference to a cell containing a text string

 

Excel Len Function Examples

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

 Formulas:
 AB
1 test string =LEN( A1 )
2 test string 2 =LEN( A2 )
3   =LEN( A3 )
 Results:
 ABC
1 test string 11  
2 test string 2 13  
3   0  - empty string has length 0
Excelq.com doing business as a Service of Venttraffic Media Inc. Excel and other words on this site may be trademarks or registered trademarks of Microsoft Corporation. Microsoft Corporation is not connected in any way with this website, and makes no endorsement of the site or its related contents. All rights reserved. Website powered by Venttraffic Media Inc.