View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Custom cell format

gary

LEN function returns only the number of characters in the cell.

Formatting to add leading zeros won't add characters to the cell.

So......A1:A31 does not contain 214 characters

I don't know of a workaround other than to do away with the Custom Formatting
and preface the cells with an apsotrophe and enter the numbers as '00000123


Gord Dibben MS Excel MVP

On Sun, 25 May 2008 09:58:00 -0700 (PDT), gary
wrote:

A1 thru A31 contains a total of 214 characters.

A lot of the cells have a custom number formats (like 00000000000 or
00000 or 0000000).

A32 contains =A1&B1&C1 thru A31

=len(A32) is 97 (not 214).

Is this discrepancy due to the custom number formats?

How do I get the result of =len(A32) to be 214?