I'm trying to add a snippet of code to a macro. I can find several vlookup functions, but nothing in a macro.
Here's a simple example.
Column A contains First name and column B contains last name, normally.
Sometime Column A contains First name AND Last name, while column B still contains Last name.
I need to search each unknown number of rows in column B and look for a match in column A. If there's a match, remove that portion from column A.
Col A Col B
Tom Jones Jones
changed to
Col A Col B
Tom Jones
Thanks to anyone able help!
Here's a simple example.
Column A contains First name and column B contains last name, normally.
Sometime Column A contains First name AND Last name, while column B still contains Last name.
I need to search each unknown number of rows in column B and look for a match in column A. If there's a match, remove that portion from column A.
Col A Col B
Tom Jones Jones
changed to
Col A Col B
Tom Jones
Thanks to anyone able help!