Results 1 to 3 of 3

Match data in 2 columns

Threaded View

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Chicago Heights, IL
    MS-Off Ver
    Excel 2007
    Posts
    10

    Match data in 2 columns

    Hi All, this complete VBA newbie needs a little help. I use Excel 2007.

    Here are the rules:
    1) this process depends on the names in Col. A. There can be 1, 2 or 3 occurrances of a name in Col. A and they will always be sequential.
    2) if there is one occurrance of a name in Col. A and it matches Col. B, put "***" in Col. C.
    3) if there are two occurrances of a name in Col. A and one of them matches Col. B, put "***" in Col. C of the one that matches.
    4) if there are three occurrances of a name in Col. A and one of them matches Col. B, delete the one that matches. If two of them match, delete only one of them.

    The names that match can be any one of the 1, 2 or 3 occurrances.

    The attached spreadsheet shows the results after the procedure is run. The two rows that say "This should be deleted" should actually be deleted.

    Thank you.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 12-10-2012, 06:26 PM
  2. Replies: 9
    Last Post: 09-18-2012, 09:16 PM
  3. Replies: 3
    Last Post: 01-28-2012, 03:41 PM
  4. Replies: 1
    Last Post: 11-22-2010, 07:03 PM
  5. Replies: 9
    Last Post: 07-02-2008, 06:16 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