+ Reply to Thread
Results 1 to 3 of 3

Format single column cells to be 6 characters long

  1. #1
    Registered User
    Join Date
    09-12-2005
    Posts
    2

    Red face Format single column cells to be 6 characters long

    I have a sheet with a single column, but there are about 3700 rows. Some are 4 to 5 characters long. I need them all 6 char long.

    Below is kinda what I need to do (add zeros to the left side to make the cells 6 chars long):

    If Len(x) = 4 then "00"+X
    Else
    If len(x) = 5 then "0"+X
    End If

  2. #2
    Anne Troy
    Guest

    Re: Format single column cells to be 6 characters long

    Just do Format-->Cells, Custom and type six zeroes into the box. See:
    http://www.officearticles.com/excel/...soft_excel.htm
    ************
    Anne Troy
    www.OfficeArticles.com


    "bubberz" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a sheet with a single column, but there are about 3700 rows.
    > Some are 4 to 5 characters long. I need them all 6 char long.
    >
    > Below is kinda what I need to do (add zeros to the left side to make
    > the cells 6 chars long):
    >
    > If Len(x) = 4 then "00"+X
    > Else
    > If len(x) = 5 then "0"+X
    > End If
    >
    >
    > --
    > bubberz
    > ------------------------------------------------------------------------
    > bubberz's Profile:
    > http://www.excelforum.com/member.php...o&userid=27181
    > View this thread: http://www.excelforum.com/showthread...hreadid=466838
    >




  3. #3
    Registered User
    Join Date
    09-12-2005
    Posts
    2

    Thanks Anne Troy!

    That's exactly what I stumbled on!

    Thanks for the post!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1