kmprice710
Board Regular
- Joined
- Jan 8, 2014
- Messages
- 82
- Office Version
-
- 365
- Platform
-
- Windows
I have a list of sales. Each customer has an assigned Customer ID. Each row has the Customer ID. But I have found out that the same Customer ID has been incorrectly assigned to more than one customer.
How do I look for duplicate Customer IDs that are incorrectly assigned on a sheet in which some "correct" duplicates appear?
<tbody>
</tbody>
For example, in this dummy example, SMIJI01 has been assigned to multiple customers --which is incorrect --but Jim Smith on 2565 Gross Point, the one who was first assigned SMIJI01, CORRECTLY appears three times on this sheet. The ID are supposed to be assigned based on the first 3 letters of the customer's last name and first two letters of the first name and then based on the address. If the ID is taken, a number 02, 03 ... etc. should be assigned.
How do I write a conditional statement that will look at the customer name and the address fields and find the "incorrect" duplicates only?
How do I look for duplicate Customer IDs that are incorrectly assigned on a sheet in which some "correct" duplicates appear?
Date | Customer Name | Address | Customer_ID |
1/1/2001 | Jim Jones | 2565 Gross Point | JONJI01 |
1/2/2001 | Jim Johnson | 1024 Avery | JONJI02 |
1/3/2001 | Jim James | P.O. Box 32 | JAMJI01 |
1/4/2001 | Jim Mason | 2754 Central | MASJI01 |
1/5/2001 | Jim Newton | 1520 Cosgrove | NEWJI01 |
1/6/2001 | Jim Newsome | 502 Boyston | NEWJI01 |
1/7/2001 | Jim Newsome | 502 Boyston | NEWJI01 |
1/7/2001 | Jim Smith | PO Box 510 | SMIJI01 |
1/8/2001 | Jim Smith | 902 Birch | SMIJI02 |
1/9/2001 | Jim Smith | 3254 N. Lake Shore | SMIJI01 |
1/10/2001 | Jim Jones | 2565 Gross Point | JONJI01 |
1/11/2001 | Jim Jones | 4891 4th St. | JONJI01 |
1/12/2001 | Jim Jones | 2565 Gross Point | JONJI01 |
<tbody>
</tbody>
For example, in this dummy example, SMIJI01 has been assigned to multiple customers --which is incorrect --but Jim Smith on 2565 Gross Point, the one who was first assigned SMIJI01, CORRECTLY appears three times on this sheet. The ID are supposed to be assigned based on the first 3 letters of the customer's last name and first two letters of the first name and then based on the address. If the ID is taken, a number 02, 03 ... etc. should be assigned.
How do I write a conditional statement that will look at the customer name and the address fields and find the "incorrect" duplicates only?
Last edited: