+ Reply to Thread
Results 1 to 6 of 6

Text string clean up formula needed

  1. #1
    Registered User
    Join Date
    07-01-2012
    Location
    Seattle WA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question Text string clean up formula needed

    Hey there, I am a newbie to this forum so please go easy on me.

    I am looking for a way to clean up a large set of text strings held in Excel 2010. The strings contain application names some of which have release numbers. The objective is to clean up the inline release numbers such that all dots and numbers to the right of the major release number are removed. The strings are not formatted consistently which makes it a bit more challenging.

    The spreadsheet contains about 10K rows of application names so I am hoping to find a formula that will help me crank through this list. Here is some sample data.

    Original application name convert to Friendly application name

    Adobe Acrobat 6.0 Standard --> Adobe Acrobat 6 Standard
    AnySite 8.8 US Client --> AnySite 8
    BlackBerry Desktop Software 6.0.1 --> BlackBerry Desktop Software 6
    CARDKEY P2000 --> CARDKEY P2000
    CardScan 8.0.2 --> CardScan 8
    Cashier Code Maintenance --> Cashier Code Maintenance
    7-Zip 9.20 --> 7-Zip 9

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Text string clean up formula needed

    with your data in col A, try this, copied down...

    =IFERROR(LEFT(A1,FIND(".",A1,1)-1),A1)

    Edit:
    you can then use "remove duplicates" if you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-01-2012
    Location
    Seattle WA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Text string clean up formula needed

    Thanks!

    That formula works great and gets me down the road when there are no strings to the right of the release number. However, in the case of the first sample row...
    Adobe Acrobat 6.0 Standard --> Adobe Acrobat 6 Standard
    The qualifier "Standard" needs to remain

    And to boot... there is the the following case with three levels in the release number and there can be more (for instance, 2012.1.5.120) Apologies for for not including this case...
    K-Lite Codec Pack 4.4.2 Standard --> K-Lite Codec Pack 4 Standard

    Regardless, this gives me something to play with. Much appreciated!!

    Also...
    Dupes are OK. Will be keeping the original names and there will be redundancy in the friendly names. Or will hold friendly names in a separate sheet.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text string clean up formula needed

    Maybe try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

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

    Re: Text string clean up formula needed

    find replace
    1 find .?.? replace with a single space
    2 find .?? replace with a single space
    gives

    Adobe Acrobat 6 Standard
    AnySite 8 US Client
    BlackBerry Desktop Software 6
    CARDKEY P2000
    CardScan 8
    Cashier Code Maintenance
    7-Zip 9
    K-Lite Codec Pack 4 Standard
    "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

  6. #6
    Registered User
    Join Date
    07-01-2012
    Location
    Seattle WA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Text string clean up formula needed

    That is immense!! Thank you so much.
    I will play with it some more and see how far it gets me but so far so good.

    over and out for now

    zimm

+ 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