Hi
I have a Conditional Filter on Columns A and C to highlight duplicates.
What I'm trying to achieve is a macro that finds the non-duplicates in Column C (e.g. Luke) and then deletes that value and all subsequent values to the right, shifting the cells below up.
Actual:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]1[/TD]
[TD]James[/TD]
[TD]abc[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]8[/TD]
[TD]Luke[/TD]
[TD]def[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Ted[/TD]
[TD]3[/TD]
[TD]Bill[/TD]
[TD]ghi[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Art[/TD]
[TD]4[/TD]
[TD]Ted[/TD]
[TD]jkl[/TD]
[TD]012[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]7[/TD]
[TD]Art[/TD]
[TD]mno[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]1[/TD]
[TD]James[/TD]
[TD]abc[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]8[/TD]
[TD]Bill[/TD]
[TD]ghi[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Ted[/TD]
[TD]3[/TD]
[TD]Ted[/TD]
[TD]jkl[/TD]
[TD]012[/TD]
[/TR]
[TR]
[TD]Art[/TD]
[TD]4[/TD]
[TD]Art[/TD]
[TD]mno[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]7[/TD]
[TD]Mike[/TD]
[TD]pqr[/TD]
[TD]678[/TD]
[/TR]
</tbody>[/TABLE]
Any suggestions on how to achieve this would be much appreciated.
Many Thanks
Matt
I have a Conditional Filter on Columns A and C to highlight duplicates.
What I'm trying to achieve is a macro that finds the non-duplicates in Column C (e.g. Luke) and then deletes that value and all subsequent values to the right, shifting the cells below up.
Actual:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]1[/TD]
[TD]James[/TD]
[TD]abc[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]8[/TD]
[TD]Luke[/TD]
[TD]def[/TD]
[TD]456[/TD]
[/TR]
[TR]
[TD]Ted[/TD]
[TD]3[/TD]
[TD]Bill[/TD]
[TD]ghi[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Art[/TD]
[TD]4[/TD]
[TD]Ted[/TD]
[TD]jkl[/TD]
[TD]012[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]7[/TD]
[TD]Art[/TD]
[TD]mno[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD]etc.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired:
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]1[/TD]
[TD]James[/TD]
[TD]abc[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]Bill[/TD]
[TD]8[/TD]
[TD]Bill[/TD]
[TD]ghi[/TD]
[TD]789[/TD]
[/TR]
[TR]
[TD]Ted[/TD]
[TD]3[/TD]
[TD]Ted[/TD]
[TD]jkl[/TD]
[TD]012[/TD]
[/TR]
[TR]
[TD]Art[/TD]
[TD]4[/TD]
[TD]Art[/TD]
[TD]mno[/TD]
[TD]345[/TD]
[/TR]
[TR]
[TD]Mike[/TD]
[TD]7[/TD]
[TD]Mike[/TD]
[TD]pqr[/TD]
[TD]678[/TD]
[/TR]
</tbody>[/TABLE]
Any suggestions on how to achieve this would be much appreciated.
Many Thanks
Matt