+ Reply to Thread
Results 1 to 4 of 4

remove irregular count of 0 from a list of numbers

  1. #1
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    remove irregular count of 0 from a list of numbers

    I have a list of 10000 rows with numbers with either 4,5,6,7 or 8 leadign zeros. All numbers are always 14 digit long. Is there any way to remove all the leading zeros through a formula without going through each and every one of them?

    Thank you,

    Jay
    Last edited by sa02000; 04-12-2011 at 07:47 PM. Reason: solved

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: remove irregular count of 0 from a list of numbers

    A number of possibilities. Try this
    Select the column, go to "Text to Columns"
    Click on Finish
    Does that work?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: remove irregular count of 0 from a list of numbers

    if they are showing leading 0 they are probably text so put a 0 in a spare cell copy select your column paste special add
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    10-03-2005
    Posts
    185

    Re: remove irregular count of 0 from a list of numbers

    Thank you very much for your help. I realized that if there are leading zeros that means its text. So multiplying by 1 fixed it. Also, I tried adding leading zeros to my other list that I was comparing the list with leading zeros with and that worked well too.

    Thanks again everyone for your help.

    Jay

+ 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