lady_alina
Board Regular
- Joined
- Feb 18, 2015
- Messages
- 52
Hi,
Thanks in advance. This site has always been so helpful and I expect to get an answer for this problem as well.
I have given below table to show you example, what I want is set of strings in column B (sheet 1) should match its words with sheet 2 column a and sheet 3 column a if any word is found in sheet 2 column a which is also found in sheet 3 column a then that word should be excluded from the out put like for examples you can check the first column of sheet 1 column C - ideally it should have copied alina, tim but since alina is found in sheet 3 column a it is excluded from the output and only tim is copied. Hop eI made myself clear. Please help me with a vba code to simplify my work.
Sheet 1
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ABC THY Alina tim tomorrow[/TD]
[TD]tim[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]WERT 00 PETER TIM[/TD]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]GYT GEORGE ALINA GNEH[/TD]
[TD]George, Alina[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PWO0 MIKE KLERW[/TD]
[TD]Mike[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: cms_table, width: 100"]
<tbody>[TR]
[TD]Alina[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]George[/TD]
[/TR]
[TR]
[TD]Alina[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[/TR]
</tbody>[/TABLE]
Sheet3
[TABLE="class: cms_table, width: 100"]
<tbody>[TR]
[TD]Column A[/TD]
[/TR]
[TR]
[TD]theg[/TD]
[/TR]
[TR]
[TD]uhwt[/TD]
[/TR]
[TR]
[TD]teh alina wer[/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance. This site has always been so helpful and I expect to get an answer for this problem as well.
I have given below table to show you example, what I want is set of strings in column B (sheet 1) should match its words with sheet 2 column a and sheet 3 column a if any word is found in sheet 2 column a which is also found in sheet 3 column a then that word should be excluded from the out put like for examples you can check the first column of sheet 1 column C - ideally it should have copied alina, tim but since alina is found in sheet 3 column a it is excluded from the output and only tim is copied. Hop eI made myself clear. Please help me with a vba code to simplify my work.
Sheet 1
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]ABC THY Alina tim tomorrow[/TD]
[TD]tim[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]WERT 00 PETER TIM[/TD]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]GYT GEORGE ALINA GNEH[/TD]
[TD]George, Alina[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]PWO0 MIKE KLERW[/TD]
[TD]Mike[/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="class: cms_table, width: 100"]
<tbody>[TR]
[TD]Alina[/TD]
[/TR]
[TR]
[TD]Peter[/TD]
[/TR]
[TR]
[TD]George[/TD]
[/TR]
[TR]
[TD]Alina[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[/TR]
</tbody>[/TABLE]
Sheet3
[TABLE="class: cms_table, width: 100"]
<tbody>[TR]
[TD]Column A[/TD]
[/TR]
[TR]
[TD]theg[/TD]
[/TR]
[TR]
[TD]uhwt[/TD]
[/TR]
[TR]
[TD]teh alina wer[/TD]
[/TR]
</tbody>[/TABLE]