+ Reply to Thread
Results 1 to 5 of 5

Find/Replace strips out zeros

  1. #1
    Registered User
    Join Date
    11-10-2010
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Find/Replace strips out zeros

    Hi,
    I have an Excel 2010 sheet in which I have a columns of part numbers in the form 003.04.010

    I need another column where the period is stripped from this format so that the above part number would become 00304010

    The relevant columns have been specified as text but when I try a find/replace to get rid of the period (find /, replace null) the part number gets the leading zeros stripped out and becomes
    304010

    I have tried all the parameters I can find without any luck. Anybody got any ideas?

    Thanks

    Mike

    EDIT: Problem solved - used OpenOffice to do the find/replacement (which does it correctly - thanks a bunch Microsoft) and saved it back in Excel format.
    Last edited by mhlangensiepen; 08-08-2012 at 12:25 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Find/Replace strips out zeros

    For future reference, use =SUBSTITUTE(A2,".",""), which removes the period(s) from A2 and leaves the answer as text.
    Kind Regards,

    Out of the Hat

    "Computers are stupid - they do EXACTLY what you tell them to"

    If I've helped you with a problem, please say thanks by clicking the small star icon on the left.

  3. #3
    Registered User
    Join Date
    11-10-2010
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find/Replace strips out zeros

    Quote Originally Posted by outofthehat View Post
    For future reference, use =SUBSTITUTE(A2,".",""), which removes the period(s) from A2 and leaves the answer as text.
    Thanks for that. Be up in Nottingham later this year - my sister lectures at N/T Uni. Nice place.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Find/Replace strips out zeros

    @ mhlangensiepen

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

  5. #5
    Registered User
    Join Date
    11-10-2010
    Location
    Perth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find/Replace strips out zeros

    Thanks for this. I was not aware of that requirement (I haven't been on the forum for a long while!). I'll try & remember in future and will check any other active threads of mine now.

+ 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