+ Reply to Thread
Results 1 to 2 of 2

Comparing Two Strings using Macro in Excel

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    aurangabad
    MS-Off Ver
    Excel 2003
    Posts
    1

    Comparing Two Strings using Macro in Excel

    I have no. strings like name of students in a Column A. Now I want to check duplicate names in list.

    e.g.
    Column A
    SURESH GUPTA
    ADITYA KULKARNI
    PAYAL SINGH
    GUPTA SURESH
    SINGH PAYAL

    I want output as below:

    Column A Column B
    SURESH GUPTA Duplicate ( Because it is duplicate with "GUPTA SURESH" in the list )
    ADITYA KULKARNI
    PAYAL SINGH Duplicate ( Because it is duplicate with "SINGH PAYAL" in the list )
    GUPTA SURESH
    SINGH PAYAL

    Thanks in advance.

    Govind

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Comparing Two Strings using Macro in Excel

    Hello Govind,

    welcome to the forum. If you are willing to use a helper column, then you won't need a macro.

    See attached. The helper column B turns the two-name string into a single word with no space after sorting the two names are in alphabetical order. And then checks for duplicates

    Cheers
    <-- If you're happy & you know it...click the star.:-)

+ 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. [SOLVED] partially comparing strings vba
    By joetinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2012, 08:54 PM
  2. Comparing text strings
    By gmalpani in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-18-2011, 01:59 PM
  3. comparing strings/same-Need Excel expert
    By Pretty Tree in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2009, 03:11 PM
  4. Comparing Strings
    By dadio25 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-30-2009, 11:13 AM
  5. Comparing slightly different strings
    By carg1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2005, 07:55 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