Sunteți pe pagina 1din 1

Excel Function Dictionary 1998 - 2000 Peter Noneley A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 B C D E F G H I

LEN Page 1 of 1

LEN
Text Alan Jones Bob Smith Carol Williams Cardiff ABC123 Length 10 9 14 7 6 =LEN(C4) =LEN(C5) =LEN(C6) =LEN(C7) =LEN(C8)

What Does It Do ? This function counts the number of characters, including spaces and numbers, in a piece of text. Syntax =LEN(Text) Formatting No Special formatting is needed. Example This example shows how the =LEN() function is used in a formula which extracts the second name from a text entry containing both first and second names. Original Text Carol Williams

=FIND(" ",C24) This is the position of the space. =LEN(C24)-FIND(" ",C24) This is the length of the second name. Calculated by taking the overall length of the complete name and subtracting the position of the space. =RIGHT(C24,LEN(C24)-FIND(" ",C24)) This is just the second name. Calculated by using the =RIGHT() function to extract the rightmost characters up to the length of the second name.

Carol Williams

S-ar putea să vă placă și