Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Find duplicate values in column and move the entire row(s) to new sheet
Post Flair (click to view more posts with a particular flair)
Post Body

I have some experience with JS and Python, but am still relatively new along my VBA journey. I have written a few successful scripts so far, but am really struggling with this.

Here is a simplified example of my problem:

I need it so that each of my sheets has a unique value for column C. However, I don't want to delete extras, I want to keep them, copy/paste them over to a new sheet and then hopefully be able to run the macro again, in that sheet, until I have a number of sheets, each with only unique values in column C.

So:

Sheet 1
 ----------- ------------------------ --------- 
| Name (A)  |         Email  (B)     |Animal(C)|
 ----------- ------------------------ --------- 
| Lauretta  | [email protected]  | Pig     |
| Kanisha   | [email protected]   | Pig     |
| Katelynn  | [email protected]  | Pig     |
| Irwin     | [email protected]| Cat     |
| Renea     | [email protected]| Cat     |
| Antonette | [email protected] | Cat     |
| Leigh     | [email protected]| Donkey  |
| Eloy      | [email protected]| Horse   |
| Jamika    | [email protected]| Horse   |
| Kristian  | [email protected]  | Horse   |
| Elaina    | [email protected]| Spider  |
| Catherina | [email protected] | Spider  |
| Ellamae   | [email protected]   | Spider  |
 ----------- ------------------------ --------- 

would look something like this:

Sheet 1

 ----------- ------------------------ --------- 
| Name (A)  |         Email  (B)     |Animal(C)|
 ----------- ------------------------ --------- 
| Lauretta  | [email protected]  | Pig     |
| Irwin     | [email protected]| Cat     |
| Leigh     | [email protected]| Donkey  |
| Eloy      | [email protected]| Horse   |
| Elaina    | [email protected]| Spider  |
 ----------- ------------------------ --------- 

Sheet 2
 ----------- ------------------------ --------- 
| Name (A)  |         Email  (B)     |Animal(C)|
 ----------- ------------------------ --------- 
| Kanisha   | [email protected]   | Pig     |
| Katelynn  | [email protected]  | Pig     |
| Renea     | [email protected]| Cat     |
| Antonette | [email protected] | Cat     |
| Jamika    | [email protected]| Horse   |
| Kristian  | [email protected]  | Horse   |
| Catherina | [email protected] | Spider  |
| Ellamae   | [email protected]   | Spider  |
 ----------- ------------------------ --------- 

at which point I could hopefully then run the same macro on `Sheet 2`, thus generating:

Sheet 2
 ----------- ------------------------ --------- 
| Name (A)  |         Email  (B)     |Animal(C)|
 ----------- ------------------------ --------- 
| Kanisha   | [email protected]   | Pig     |
| Renea     | [email protected]| Cat     |
| Jamika    | [email protected]| Horse   |
| Catherina | [email protected] | Spider  |
 ----------- ------------------------ --------- 

Sheet 3
 ----------- ------------------------ --------- 
| Name (A)  |         Email  (B)     |Animal(C)|
 ----------- ------------------------ --------- 
| Katelynn  | [email protected]  | Pig     |
| Antonette | [email protected] | Cat     |
| Kristian  | [email protected]  | Horse   |
| Ellamae   | [email protected]   | Spider  |
 ----------- ------------------------ --------- 

Hopefully this makes sense. I have spent weeks on it, experimenting with various chimeric abominations I harvested from various places, which don't work :( I really have been trying though! I can post my terrible non-functioning attempts if you like, but they are really nonsensical at this point.

Any help at all would be very much appreciated! :)

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
18,222
Link Karma
10,468
Comment Karma
6,920
Profile updated: 6 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago