Hi all,
I am hoping that somebody can show me the easiest way to accomplish deleting the values in multiple cells from another cell. I thought it would be an easy SUBSTITUTE with "", but nothing I am writing works. It will obviously need a more elegant VBA solution.
From the table below I am using a common list of names, each name is separated with a carriage return (A1). For each row (2,3,4), I am trying to remove the names in the cells from column A, B, C from the list of names in A1 and display the remaining names in column E.
[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]SURNAME Name 1
SURNAME Name 2
SURNAME Name 3
SURNAME Name 4
SURNAME Name 5
SURNAME Name 6
SURNAME Name 7
SURNAME Name 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]RESULT[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]SURNAME Name 5[/TD]
[TD]SURNAME Name 2
SURNAME Name 3[/TD]
[TD]SURNAME Name 7
SURNAME Name 1[/TD]
[TD][/TD]
[TD]SURNAME Name 4
SURNAME Name 6
SURNAME Name 8[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]SURNAME Name 4
SURNAME Name 3[/TD]
[TD]SURNAME Name 8[/TD]
[TD]SURNAME Name 2[/TD]
[TD][/TD]
[TD]SURNAME Name 1
SURNAME Name 5
SURNAME Name 6
SURNAME Name 7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]SURNAME Name 2
SURNAME Name 7
SURNAME Name 1[/TD]
[TD]SURNAME Name 8
SURNAME Name 3[/TD]
[TD]SURNAME Name 4
SURNAME Name 5[/TD]
[TD][/TD]
[TD]SURNAME Name 6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sounds simple but it is a little bit beyond my skills at the moment. I would greatly appreciate any help or code.
Regards
Rick73
I am hoping that somebody can show me the easiest way to accomplish deleting the values in multiple cells from another cell. I thought it would be an easy SUBSTITUTE with "", but nothing I am writing works. It will obviously need a more elegant VBA solution.
From the table below I am using a common list of names, each name is separated with a carriage return (A1). For each row (2,3,4), I am trying to remove the names in the cells from column A, B, C from the list of names in A1 and display the remaining names in column E.
[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]SURNAME Name 1
SURNAME Name 2
SURNAME Name 3
SURNAME Name 4
SURNAME Name 5
SURNAME Name 6
SURNAME Name 7
SURNAME Name 8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: center"]RESULT[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]SURNAME Name 5[/TD]
[TD]SURNAME Name 2
SURNAME Name 3[/TD]
[TD]SURNAME Name 7
SURNAME Name 1[/TD]
[TD][/TD]
[TD]SURNAME Name 4
SURNAME Name 6
SURNAME Name 8[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]SURNAME Name 4
SURNAME Name 3[/TD]
[TD]SURNAME Name 8[/TD]
[TD]SURNAME Name 2[/TD]
[TD][/TD]
[TD]SURNAME Name 1
SURNAME Name 5
SURNAME Name 6
SURNAME Name 7[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]SURNAME Name 2
SURNAME Name 7
SURNAME Name 1[/TD]
[TD]SURNAME Name 8
SURNAME Name 3[/TD]
[TD]SURNAME Name 4
SURNAME Name 5[/TD]
[TD][/TD]
[TD]SURNAME Name 6[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Sounds simple but it is a little bit beyond my skills at the moment. I would greatly appreciate any help or code.
Regards
Rick73