Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: 7 character cells

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I need a column of information to be 7 characters. For example, I have... 587716,
    654665, 654666, 1345281.. etc. As you can see I have some with 6 and some with 7. The ones with 6 I need to add a "0" in front of... is this possible?

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,637
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-05-09 04:29, cpdiggler wrote:
    I need a column of information to be 7 characters. For example, I have... 587716,
    654665, 654666, 1345281.. etc. As you can see I have some with 6 and some with 7. The ones with 6 I need to add a "0" in front of... is this possible?
    In B1 enter:

    =RIGHT("0"&A1,7)

    where A1 houses the first entry.

    Double click on the fill handle of B1 in order to copy it down.

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Sheffield, UK
    Posts
    253
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    If you only need it to DISPLAY 7 characters, you can format the cells with a custom format of 0000000

    [ This Message was edited by: philR on 2002-05-09 05:01 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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