I need a formula or macro that can sort a large data file.
I want to be able to sort the data by Column D to group the duplicates (most have 6-8 duplicates for the same number in Column D).
I then want to delete any duplicates within this group in Column y.
For example so it all makes more sense:
In Column D I have a customer number. They make multiple orders. I want to group by each customers number. In Column Y, is their locations. I want to delete the duplicate locations per customer.
I cannot find a way to delete the duplicates without it deleting the locations in the entire column Y.
For example: Customer A and B both have a place in TX. When I delete the duplicates it deletes Customer A and B's location. I don't know how to limit this to only delete duplicates per number in Column D.
There are over 12,000 entries and manually doing this would take several days.
I want to be able to sort the data by Column D to group the duplicates (most have 6-8 duplicates for the same number in Column D).
I then want to delete any duplicates within this group in Column y.
For example so it all makes more sense:
In Column D I have a customer number. They make multiple orders. I want to group by each customers number. In Column Y, is their locations. I want to delete the duplicate locations per customer.
I cannot find a way to delete the duplicates without it deleting the locations in the entire column Y.
For example: Customer A and B both have a place in TX. When I delete the duplicates it deletes Customer A and B's location. I don't know how to limit this to only delete duplicates per number in Column D.
There are over 12,000 entries and manually doing this would take several days.