Looking for a way to have VBA lookup the duplicates in a table (it will be different lengths each time) and copy the duplicate rows to another sheet for further analysis.
I have attached a file that shows data that is similar.
Thanks,
Andy
Looking for a way to have VBA lookup the duplicates in a table (it will be different lengths each time) and copy the duplicate rows to another sheet for further analysis.
I have attached a file that shows data that is similar.
Thanks,
Andy
Try...
![]()
Please Login or Register to view this content.
Last edited by dangelor; 04-29-2012 at 04:20 PM.
Didn't quite work just inserting it and running. Do I need to change some variables so that it will pick up the actual cells?
It would be nice if it could dump the results to the same spot to make it easy to Vlookup.
Thanks,
Andy
Last edited by AndyIStheMan; 04-29-2012 at 11:36 AM.
The code assumes a Sheet1 and a Sheet2.
Possibly because there are no duplicate rows. There were none in your attached file. See attached...
Last edited by dangelor; 04-29-2012 at 02:19 PM.
OKI was asking the wrong question then. I am looking for the duplicates in the column. Then copy the duplicate column values and the other values in the same row as the duplicates.
Which column?
The Name Column (A).
Try this one...
![]()
Please Login or Register to view this content.
That worked for the most part. If I put triplicates or quad unique entries in it, it messes it up. Does it need to loop?
Is it possible to have it bring over the the all the lookup values as well (first through last)?
Well this worked!
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks