How can I search for partial matching words in various columns without needing to provide search text?

I have a list of names in three columns - B2:B425, D2:406, & E2:30 where they were input by different people, so the names are worded differently. For example, I can have the name "Handler, Jones, & Wright" and someone else has the name
listed as "Handler Corp." What I need is to find a formula or VBA macro code that can search through my list and notice the possible duplicates and highlight them. Since they are all different names, I cannot give it a unique "text" to
search.
I found a code posted in this forum from some time ago (for two columns) but it highlighted all these names that had no partial words in common. Perhaps you can look over the code below and modify it for me or provide me with another one? Please let me know
if you need any further information to guide me. 
Sub HighlightDups()
    Dim rg1 As Range, rg2 As Range, c As Range, d As Range
    Dim sTemp As String, sTempWords() As String, sTempDWords() As String
    Dim re As Object, mc As Object
    Dim i As Long, j As Long
    Dim sFirstAddress As String
Set rg1 = Range("B2", Cells(Rows.Columns.Count, "B").End(xlUp))
Set rg2 = Range("D2", Cells(Rows.Columns.Count, "D").End(xlUp))
Set re = CreateObject("vbscript.regexp")
    re.Global = True
    re.ignorecase = True
With Range(rg1, rg2)
    .Font.Color = vbBlack
    .Font.Bold = False
    .Interior.Color = xlNone
    .FormatConditions.Delete
End With
For Each c In rg1
  re.Pattern = "\b\w+\b"
  If re.test(c.Text) = True Then
    Set mc = re.Execute(c.Text)
        ReDim sTempWords(0 To mc.Count - 1)
        For i = 0 To UBound(sTempWords)
            sTempWords(i) = mc(i)
        Next i
    For i = 0 To UBound(sTempWords)
        Set d = rg2.Find(What:=sTempWords(i), _
                         LookIn:=xlValues, _
                         LookAt:=xlPart, _
                         MatchCase:=False)
        If Not d Is Nothing Then
            re.Pattern = "\b" & sTempWords(i) & "\b"
            sFirstAddress = d.Address
            Do
                    If re.test(d.Text) Then
                With c
                    .Font.Color = vbWhite
                    .Font.Bold = True
                    .Interior.Color = vbBlue
                End With
                With d
                    .Font.Color = vbWhite
                    .Font.Bold = True
                    .Interior.Color = vbBlue
                End With
                    End If
                Set d = rg2.FindNext(after:=d)
                Loop While Not d Is Nothing And d.Address <> sFirstAddress
        End If
    Next i
  End If
Next c
Set re = Nothing
End Sub
 

Programming/Code related questions should really be posed in one of the following forums
Excel for Developers
http://social.msdn.microsoft.com/Forums/en-US/exceldev
Microsoft Office Programming
http://answers.microsoft.com/en-us/office/forum/customize?page=1&tab=all&tm=1361680524815
Tony Chen
TechNet Community Support

Similar Messages

  • IPad version:how can I search a word on modules?

    Hi to everybody! How can I search a word in modules?
    I understand that I can do a search in spreadsheet, but I need to do in a module that is more efficient...so do you know?
    And why when I write on module I can't press enter and begin to write a new line??
    Thanks!

    Touch the URL field at the top of the page, type your word and a list of possible searches will be shown. Near the bottom of this list will be "On this page" which shows hits on the page (if any). Touch this and you will be taken to the first match.

  • How Can I Search for Media files by Length?

    I want know how can I search for media files (mov, mp4, flv and movie files in general) by their length?
    If this search function is confirmed as definitely not possible on the OS, I would appreciate someone recommending app that might be able to perform such a search?
    Many thanks

    No possible way. Because the files may be enoded with differing codecs, compression, etc., you can only sort by file size, not the 'length' of the movie files.
    Clinton

  • How can I search for duplicate photos in iPhoto libraries?

    How can I search for duplicate photos in iPhoto 9.5.1 library.  Installed on iMac 2.7 GHz Intel Core i5, Mavericks 10.9.5.

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • How can one search for a filename anywhere on the Mac?

    How can one search for a filename anywhere or everywhere on the Mac?

    You can configure Spotlight so it will also search in system files or you can download and use EasyFind 4.9.3 that doesn't require special configuration.
    Get Spotlight to search system files (and more)
    Enter the search term in the Finder window's search field.
    Click the [+] button in the search bar to add a search option.
    In the first drop down menu choose Other.
    Choose “System Files” from the list that pops up (and check the box to place in drop down menu to avoid this step later,) click on the OK button.
    Now back in the Finder choose Include from the second drop down menu.

  • How can I search for files in System and Library folders

    This arrose when I tried to find Archive Utility.app. Neither a Finder search or Spotlight found it, apparently because it is in Hard Drive/System/Library/CoreServices and the System folder is not searched. I've had similar problems when trying to find things in Library. How can I search these folders?

    You can enable the Finder to include System files in its search
    In a Finder finder window select Kind then Other… locate System files in the list and click the checkbox.

  • How can I search a PDF document for annotations/comments

    I have a long 50+ page pdf document with many annotations and commnets.  How can I search this document to find each comment?

    Locating and Searching Comment annotations.
    From the open Comments List you can sort and filter comments.
    This is discussed in Acrobat X Pro's online Help:
    http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7e42.w.h tml 
    A sorted / filtered list can be used to generate a PDF comment summary report.
    http://help.adobe.com/en_US/acrobat/pro/using/WS75E00763-F15A-43a1-85B7-51B920B1181A.w.htm l
    You could then use Find on the output summary report.
    Using Acrobat X Pro you can embed an index in the PDF.
    http://help.adobe.com/en_US/acrobat/pro/using/WSC28D4DBB-6A78-4027-9E04-F50FE411CFB9.w.htm l
    Then use the Search tool. With the Search pane open tick "Include Comments".
    Search returns have an icon at the left of each instance.
    This portion of Acrobat X Pro's online Help shows and describes these.
    The third up from the list's bottom is the Comments icon.
    http://help.adobe.com/en_US/acrobat/pro/using/WSC28D4DBB-6A78-4027-9E04-F50FE411CFB9.w.htm l 
    One of these or combinations may met your needs. 
    Be well...

  • How can I search photos in my library by definition (300dpi or 72dpi) ?

    Hi, I have several questions before buy Lightroom licence but I haven't find how to do with trial version.
    1° How can I search photos in my library by definition (300 dpi or 72 dpi) ?
    2° Is it possible to search photos by same chromatic scale (all photos with most green for example, to match with a green page setting)
    3° Is it possible to find doubloons (exactly same photo but not same title or format) ?
    (I'm french, so please try to make simple answer)
    Thank you for your answer.
    Aline

    1) This question is based on a misunderstanding of resolution. A digital photo does not have resolution, i.e. it is neither 300 ppi nor 72 ppi not anything else ppi. A digital image has only a pixel dimension - so many pixels horizontal, so many vertical. That's all. Resolution comes only into play when we print an image. For a quality print we need a certain minimum amount of dots per inch. But as long as the image is digital (in the camera or on the computer) it has only pixel dimension - for instance 2000 x 3000 pixels. Therefore you cannot search by 300 ppi or 72 ppi.
    2) What do you mean by "chromatic scale"?  And what do you mean by "photos with most green"?
    Do you mean search for a photo that is taken - let's say - in a forest vs. a photo taken in the desert? No, you can't search for that in Lr since Lr does not recognize image content.
    But if you mean by "mostly green" a color label - yes you can search for photos that have a green color label (or a red one, or yellow, etc.)
    3) No. As already mentioned, Lr does not recognize image content. An exact duplicate of an image that has a different file name is a different image for Lr.

  • How can I search the last line in an internal table?

    How can I search the last line in an internal table?
    With a describe?? If it is , how can I do that?
    Thanks!!

    Hi shilpa,
    it seems to be you are NEW to SDN. welcome. if you want to get solutions to your Questions, you have to post a NEW thread.dont use the existing thread to post your question.
    any way i am giving you the solution for your question
    LOOP AT ITAB WHERE F1 = <SOME VALUE>
                       F2 = <SOME VALUE>.
    ENDLOOP.
    IF SY-SUBRC = 0.
      ITAB WILL HAVE THE LAST RECORD which satisfying the given criteria in WHERE clause of LOOP.
      write itab <--this ITAB will have the last record.
    ENDIF.
    regards,
    Srikanth.
    Message was edited by: Srikanth Kidambi

  • I received an email with an attachment in "Pages." How can I save it in Microsoft Word?

    I am new to Mac.  I have received an email with an attachment in "Pages."  How can I save it in Microsoft Word?  Help!

    I don't think Word can open docs created in Pages.  Either buy Pages or contact the person who sent this to you and have them save the document in a compatible format for Word.... which entails them opening the document in question and clicking File/Export and picking Word from the format dropdown in the Pages program.

  • How can I test for the bas unit enterd in a control?

    How can I to create a polymorphic vi where the user can enter either volume or temperature.
    how can Labwiev test for the base unit entered
    pseudocode example:
    input X
    if X.base_unit == m^3 do ....... 
    thanks for any suggestion to resolve or avoid my problem
    Solved!
    Go to Solution.

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Hello! how can i put and read my words documents in the notes pad of my ipod nano 3trd generation?thanks to all.the notes

    hello! how can i put and read my words documents in the notes pad of my ipod nano 3trd generation?thanks to all.

    The Notes features of the 3G iPod Nano only supports TXT files and not Word Documents.  If you want to be able to read these word documents, you'll need to copy the text from each over to a text file.  See here for more information.
    iPod: Storing and reading notes
    Keep in mind that each txt file has a limit of 4096 characters.  See this article for more information as well.
    Long notes are truncated on your iPod
    B-rock

  • HT4914 I do not own a computer. I have an iPad. How can I subscribe to iTunes Match as ALL my music is stored on my iPad.

    I do not own a computer. I bought an iPad. ALL my music is stored on it. How can I subscribe to iTunes Match?

    If you are in the US then your iTunes purchased music should be in the cloud for redownloading in the Purchased tab in the iTunes store app - but music can be removed from the store at any point by the record companies (and similarly for other content types as well), so you shouldn't rely on being able to redownload it in the future.
    Do you have access to a computer e.g. a friend or family member that you could use ?

  • How can I search the tree with a given string?

    How can I search the tree with a given string?
    I don't find any function like "search(...)".
    I want to find the tree nodes which include the given string.
    Thanks.

    Try it with .com instead of .ca - fixes it for me (corporate firewall blocks .ca here)
    http://spendolini.blogspot.com/2013/09/working-with-apex-tree.html
    Anyway - it links to an article of mine which describes interacting with the tree: Tom's Blog: Working with the tree in Apex. There is also a demo application on apex.oracle.com: http://apex.oracle.com/pls/apex/f?p=54687:38

  • How can I pay for skype number for one year

    How can I pay for skype number for one year? 

    Hi, Orzo.Coffee, and welcome to the Community,
    I realize what I am about to write sounds a bit weird: to change the term of a Skype Number subscription, we need to permit it to expire, or in other words, reach the end of its term.  Your Skype Number will be held on account for you for 90 days following the expiration date, so you can sign in even on the same day you receive the e-mail stating your Skype Number subscription has expired, to reinstate the subscription and change the term.
    I had to ensure I had enough credit on account so my renewal would process successfully; if you plan to renew for a year and use credit for your payment method, remember to add enough credit to cover the cost of the annual subscription.  You could also change your payment method at the time you reinstate/renew your Skype Number subscription.
    Make sense?
    Kind regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

Maybe you are looking for

  • Printing problem in AR 9.1.3

    It has become impossible to print from Reader. No problems opening and viewing PDF documents either from websites or prevously saved, they just won't print! Error messages says that "The document could not be printed" I press the OK button and anothe

  • Vmware workstation problem

    So I've just installed VMware Workstation 11 and when I try to start it , it does not start this is the content of the log file Can anyone help me out ? 2015-06-16T22:58:08.153+01:00| vmui| I120: Log for VMware Workstation pid=5366 version=11.1.2 bui

  • Problems cropping Photos

    Photoshop Elements 11 Windows 7 - 64 Bit I am in Photoshop Elements Quick Editor, I click the Crop Tool and choose what want to crop.  Sometimes I want to move or change the size of what I am cropping and I can't - I can't move the crop box or resize

  • Smart Web Albums not working... I think

    I have created a series of Smart Web Albums based on 5 Star and a Keyword - so far so good and then published them, again all good. Problem is now when I go back to them they are empty (most of the time) - the only way I can find to get the pictures

  • Function Module to put leading zero

    Hi, Function that puts leading zeros. I am getting a text file which has got cost center as 1234, but i need to put leading zero in order to check the availability of the value in the table csks. I want a function module which puts leading zero.