+ Reply to Thread
Results 1 to 5 of 5

Transposing list of values with 6 zeroes in front to retain the zero after transposing

  1. #1
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Transposing list of values with 6 zeroes in front to retain the zero after transposing

    Hi,
    I have a list of Serial Numbers which are all twenty digits with 6 zeros in front of the number
    i.e
    00000010060470726395
    00000010060470856481
    00000010060470726395
    00000010060470886402
    ..
    ..
    I am trying of a way to transpose these into 1 column like 00000010060470726395,00000010060470726395,00000010060470856481 etc
    I am using this code which does the transposing but ignores the 6 zeroes and starts with the first digit kinda like 10060470726395,10060470726395.
    How can i rectify to include the 6zeroes..?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Transposing list of values with 6 zeroes in front to retain the zero after transposing

    I think it is a formatting issue. You can format these values as text before you use the above code.

  3. #3
    Registered User
    Join Date
    03-17-2012
    Location
    Mississauga,Ontario
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    75

    Re: Transposing list of values with 6 zeroes in front to retain the zero after transposing

    i have tried this to no avail, it still goes back to the 100604.. value.. I tried custom with '000000' but changes back to the 100604 value when the code is run.
    any other ideas??

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Transposing list of values with 6 zeroes in front to retain the zero after transposing

    This should do
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Transposing list of values with 6 zeroes in front to retain the zero after transposing

    @ jindon,

    Once again, very good!

    I would add Column Aoutofit at the end.

    Please Login or Register  to view this content.
    I don't understand this line comletely.

    Please Login or Register  to view this content.
    Could you please explain it to me?
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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