Recognizing the Length of a Text Value

K

Ken H.

How can I have Excel figure out how many characters are
in a text sequence located in an individual cell?
For example, if the value of cell A1 is "ABC" I want cell
B1 to return a value of "3". If cell A2 is "ZZ" I want
cell B2 to return a value of "2". If cell A3 is "UVWXYZ"
I want B3 to equal "6". Thanks - Ken
 
G

Guest

To be a bit safer and to eliminate any spaces that the "LEN" formula would count try

=LEN(TRIM(LEFT(A1,LEN(A1)))

Va


----- Scott wrote: ----

=LEN(A1) should do the trick

Cheers
 
H

Harlan Grove

Van P. said:
To be a bit safer and to eliminate any spaces that the "LEN" formula
would count try:

=LEN(TRIM(LEFT(A1,LEN(A1))))
....

Why not just

=LEN(TRIM(A1))

?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top