Hello everyone,
First of all let me say thank you in advance for any help you can provide, I have come to my wits end trying to get this to work.
I have a feeling that this will need to be a VB macro but I don't know to code it correctly.
I have an excel data sheet with 5 columns and little over 1 thousands rows however, its littered with duplicate entries and I need to identify those duplicate entries report on them and also clean up the list... let me give you an example below.
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2002 6548 5479 350 2
2003 5005 4565 350 1
2004 4577 7897 350 33
2005 1247 6571 350 14
2006 4577 7897 350 5
2007 5005 4565 350 77
I need to do the following:
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2003 5005 4565 350 1
2007 5005 4565 350 77
2004 4577 7897 350 33
2006 4577 7897 350 5
I still technically need to also end up with a table which has the duplicates removed....
So it would look like the following.
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2002 6548 5479 350 2
2004 4577 7897 350 33
2005 1247 6571 350 14
NOTE: for this table, it doesn't matter which duplicate data we choose to keep, just as long as the duplicate data does not exist.
Let me know if I haven't explained anything clear enough.
If what I am trying to do is too hard... or not possible please leave a comment and let me know, so I don't continue trying it myself haha
Thanks again
First of all let me say thank you in advance for any help you can provide, I have come to my wits end trying to get this to work.
I have a feeling that this will need to be a VB macro but I don't know to code it correctly.
I have an excel data sheet with 5 columns and little over 1 thousands rows however, its littered with duplicate entries and I need to identify those duplicate entries report on them and also clean up the list... let me give you an example below.
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2002 6548 5479 350 2
2003 5005 4565 350 1
2004 4577 7897 350 33
2005 1247 6571 350 14
2006 4577 7897 350 5
2007 5005 4565 350 77
I need to do the following:
- Scan Column B & C and identify when duplicate pairs exist. In the example above Row's (1, 3 & 7) Also Row's (4 & 6)
- NOTE: more than one duplicate can exist of the paired cells from column B & C - see examples noted above.
- Format the results in a way that will allow me to report on the duplicate entries.
- NOTE: The data in the adjacent cells is important so if possible it would be great to end up with a second separate table that looks like something below
- 2nd note: If you have a better idea how to format it, that achieves the sames results please feel free to suggest.
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2003 5005 4565 350 1
2007 5005 4565 350 77
2004 4577 7897 350 33
2006 4577 7897 350 5
I still technically need to also end up with a table which has the duplicates removed....
So it would look like the following.
Col A Col B Col C Col D Col E
2001 5005 4565 350 1
2002 6548 5479 350 2
2004 4577 7897 350 33
2005 1247 6571 350 14
NOTE: for this table, it doesn't matter which duplicate data we choose to keep, just as long as the duplicate data does not exist.
Let me know if I haven't explained anything clear enough.
If what I am trying to do is too hard... or not possible please leave a comment and let me know, so I don't continue trying it myself haha
Thanks again