+ Reply to Thread
Results 1 to 4 of 4

Convert similar strings into a common string

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    91

    Convert similar strings into a common string

    I am pretty sure that there is an easy way to do this. But I am not able to figure it out. I have a column which list names of companies but in different ways. For Eg)

    Huber Sunher
    Huber + Sunher
    HuberSunher
    Huber Sunher Vermont

    I want to find out a way which would help me display just "Huber & Sunher" for all these data.

    Kindly let me know how this is done.

    Thanks,
    Booo

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Convert similar strings into a common string

    Hello boo,

    It would help to see all the data. In cases like this, a pattern needs to exist to parse and recombine the strings. If you have a workbook, please post it. This will save a lot of Q and A, and get you results much faster.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    09-29-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Convert similar strings into a common string

    Hi,

    Thanks for responding. I have attached a sample spreadsheet. I cannot add a lot of detailed data because the data I work is from my employer.

    If u have a look at the spreadsheet, you will be able to see that the Name's have been entered in different combination. That data is being imported from SAP and since they do not have an automated system to choose the name, people enter it in their own ways.

    If there was a way to make the names to display in one form depending upon their starting strings, that would be great.

    Thanks,
    booo
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Convert similar strings into a common string

    Hello booo,

    If these entries are free form then you can only do so much with code due to the number of possible variations. There needs to be something distinct and consistent. For example, using capital letters to start a word. Using this method spaces between words can be ignored, like DiyDiy. Without the capital letters, one or spaces would need to be used to separate the words.

    Cases like "Huber + Suhner Vermont" pose another problem. Is "Vermont" a parent company, a state, or something else? How many other similar cases are there like this one?

    If you were working with these variations only:
    Huber Suhner
    HuberSuhner
    huber suhner
    Huber and Suhner
    Huber+ Suhner

    It would be easy to determine where the breaks between words are. Otherwise, it would be quite a task to check for and parse the names. You would need a heuristic database to automate the process reliably.
    Last edited by Leith Ross; 11-03-2010 at 03:57 PM.

+ 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