+ Reply to Thread
Results 1 to 2 of 2

String Cleanup

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    1

    Lightbulb String Cleanup

    Hello Mighty Excel Gurus,

    I need some help cleaning up a list of strings

    I've got a list of company names such as:

    Mike's Big Shoe Co., LLC. Inc
    Bobby's The-Real-Homemade Ice Cream Inc.
    Brinc Theater
    The Presidential Fan Club Corp.

    I need to create a formula that will remove all instances of:

    LLC
    Inc
    .
    '
    The - only if it precedes the company name
    Corp,
    Inc
    etc

    That way, all I'm really left with is the main part of the company name.
    Doing a find and replace for each one of these separately is out to because it will remove things like the "inc" and "the" in "BrINC THEaters" and all i'd be left with is "Br aters"

    Are there any Excel Jedi's out there who can solve this string clean up puzzle?

    Thanks!

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

    Re: String Cleanup

    id go about it in several stages
    first
    data/text to columns/ delimited
    check comma AND space and in other put .
    click next
    THEN make sure you change every column heading to text
    then do your find replace on whole cell only EG -CORP
    then join them back with =a1&" "&b1&C1&" "&D1&" "&E1&" "&E1&" "&G1&" "&H1
    "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

+ 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