Hello,
I need 2 things.
1. I need a formula in my excel spreadsheet that picks up duplicates. The range for the duplicates would be within 1 column. Right now I have:
=COUNTIF(A:A,A1)>1
which basically counts if it comes up more than once, then reading either true or false.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Cost Center[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Bob Marley[/TD]
[TD]9999[/TD]
[TD]False[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]5555[/TD]
[TD]True[/TD]
[/TR]
</tbody>[/TABLE]
However, I need something that can recognize if there are duplicates given circumstances with 2 columns (in this case, looking at "Name" and "Cost Center" criteria), giving me something like this after removing the duplicates:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Cost Center[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Bob Marley[/TD]
[TD]9999[/TD]
[TD]False[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]5555[/TD]
[TD]True[/TD]
[/TR]
</tbody>[/TABLE]
So it delete the duplicate row with "Tony Yoo" and cost center "1001".
2. To sum it all up, I was thinking of putting this into VBA to automatically look for these duplicates and then remove.
I know this is long but any advice is appreciated!!!
Thank you,
Tony
I need 2 things.
1. I need a formula in my excel spreadsheet that picks up duplicates. The range for the duplicates would be within 1 column. Right now I have:
=COUNTIF(A:A,A1)>1
which basically counts if it comes up more than once, then reading either true or false.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Cost Center[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Bob Marley[/TD]
[TD]9999[/TD]
[TD]False[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]5555[/TD]
[TD]True[/TD]
[/TR]
</tbody>[/TABLE]
However, I need something that can recognize if there are duplicates given circumstances with 2 columns (in this case, looking at "Name" and "Cost Center" criteria), giving me something like this after removing the duplicates:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Cost Center[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]1001[/TD]
[TD]True[/TD]
[/TR]
[TR]
[TD]Bob Marley[/TD]
[TD]9999[/TD]
[TD]False[/TD]
[/TR]
[TR]
[TD]Tony Yoo[/TD]
[TD]5555[/TD]
[TD]True[/TD]
[/TR]
</tbody>[/TABLE]
So it delete the duplicate row with "Tony Yoo" and cost center "1001".
2. To sum it all up, I was thinking of putting this into VBA to automatically look for these duplicates and then remove.
I know this is long but any advice is appreciated!!!
Thank you,
Tony