I need to find and replace text in column A by matching the values in Column B with part of the string in the cells in column A. When there is a match in Column A this value should be replaced by the text in Column C. What I need is a VBA macro that can search for all the column B-values in column A, and then replace them there with the values in Column C. The result would be "John; Ringo" in A2 and so on.
I would be very grateful for information on how to do this, I'm a complete newbie when it comes to VBA. (I'm using Excel 2010 and Windows 7)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]abc-123; efg-456[/TD]
[TD]abc-123[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]bcd-234[/TD]
[TD]bcd-234[/TD]
[TD]Paul[/TD]
[/TR]
[TR]
[TD]cde-345[/TD]
[TD]cde-345[/TD]
[TD]George[/TD]
[/TR]
[TR]
[TD]efg-456; bcd-234; bcd-23[/TD]
[TD]efg-456[/TD]
[TD]Ringo[/TD]
[/TR]
</tbody>[/TABLE]
I would be very grateful for information on how to do this, I'm a complete newbie when it comes to VBA. (I'm using Excel 2010 and Windows 7)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]abc-123; efg-456[/TD]
[TD]abc-123[/TD]
[TD]John[/TD]
[/TR]
[TR]
[TD]bcd-234[/TD]
[TD]bcd-234[/TD]
[TD]Paul[/TD]
[/TR]
[TR]
[TD]cde-345[/TD]
[TD]cde-345[/TD]
[TD]George[/TD]
[/TR]
[TR]
[TD]efg-456; bcd-234; bcd-23[/TD]
[TD]efg-456[/TD]
[TD]Ringo[/TD]
[/TR]
</tbody>[/TABLE]