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.
Bookmarks