+ Reply to Thread
Results 1 to 4 of 4

Order column on close or matching common text

  1. #1
    Forum Contributor
    Join Date
    10-06-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    208

    Order column on close or matching common text

    Column A in the attached sheet contains names extracted from different research papers. I need a VBA or other solution that can order the column in close match of the names. Many of the research papers are written by the same people but they write their names in different manners. Sometimes the name is written in full (first name last name), sometimes in full but first name then last name, sometimes last name and first initials, sometimes adding AL or AL-.

    But in all case, then is something common. If I can sort them on close common match, then I can go through each group and unify the names.

    Sorry for the lengthy post

    All the best Taisir
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Order column on close or matching common text

    I can get you out of one condition: the AL- and AL prefix on names. These can be removed with an if statement:

    =IF(LEFT([@Name],3)="AL-", RIGHT([@Name],LEN([@Name])-3),IF(LEFT([@Name],3)="AL ", RIGHT([@Name],LEN([@Name])-3),[@Name]))

    Sorting on this column should get you close.

    To get names that sound similar to each other, there is a thing called a SOUNDEX code and there are algorithms for it on line. However, I think it's based on English phonics and may not do well with Arabic names.
    Attached Files Attached Files

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Order column on close or matching common text

    I just thought of one more thing. You can use the sorted table as source data to get a list of unique names.

  4. #4
    Forum Contributor
    Join Date
    10-06-2013
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Excel 2010
    Posts
    208

    Re: Order column on close or matching common text

    Quote Originally Posted by dflak View Post
    I just thought of one more thing. You can use the sorted table as source data to get a list of unique names.
    Many thanks dflak for your suggestion.Indeed, I can live and work with your innovative formula. All the best Taisir

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula that displays most common text string in column
    By cinque in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 10:06 PM
  2. Return most common text from column cells with formula while ignoring blanks
    By rosco01995 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2014, 03:55 AM
  3. Replies: 3
    Last Post: 11-25-2013, 05:14 AM
  4. Matching data from one sheet to another, using a column of common data
    By jacktastic in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 01-18-2013, 12:43 PM
  5. Matching Data from Common Column
    By somebody113 in forum Excel General
    Replies: 4
    Last Post: 07-08-2011, 03:27 PM
  6. Combine 2 spreadsheets w/1 common column of data, text and number
    By Ginger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 06:50 PM
  7. Matching two different text cells with ramdom text order
    By LesA in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-12-2005, 07:20 PM

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