len function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a column of names consisting of first, middle initials(sometimes), and
last. The len function is part of the parsing formula I want to use. But I
find that in this case it always returns the number 39. This must be the
width of the column rather than the actual count of characters in the cell.
The data orginated in a database. How can I "clean up" my data in Excel so
that len returns the number of characters in the cell?
 
Is your data padded with spaces to get the 39 characters? If so, then the
trim function should clear those. Ex, if your padded text is in A2, then
=trim(a2) should 'clean up' the entry.
 

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

Back
Top