#1   Report Post  
ArthurJ
 
Posts: n/a
Default len function

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?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default len function

Probably either spaces or invisible html characters,
try

=LEN(TRIM(A1))

if it is still the same run this macro

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--

Regards,

Peo Sjoblom

"ArthurJ" wrote in message
...
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?



  #3   Report Post  
bpeltzer
 
Posts: n/a
Default len function

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.

"ArthurJ" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


All times are GMT +1. The time now is 05:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"