Need a macro to find greater the 5 duplicates in a target field and highlight rows or just the target field
I am doing this manually with Countif and Conditional formatting rules but I can not get a macro to work
Duplicates are always consecutive
This is the data
This is the needed results
I am doing this manually with Countif and Conditional formatting rules but I can not get a macro to work
Duplicates are always consecutive
This is the data
plus 5 dupes.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | FIRST_NAME | LAST_NAME | ACCOUNT_NBR | ||
2 | 123 | ||||
3 | 123 | ||||
4 | 123 | ||||
5 | 12 | ||||
6 | 12 | ||||
7 | 123456 | ||||
8 | 123456 | ||||
9 | 123456 | ||||
10 | 123456 | ||||
11 | 123456 | ||||
12 | 123456 | ||||
13 | 1234 | ||||
14 | 1234 | ||||
15 | 1234 | ||||
16 | 1234 | ||||
17 | 12345678 | ||||
18 | 12345678 | ||||
19 | 12345678 | ||||
20 | 12345678 | ||||
21 | 12345678 | ||||
22 | 12345678 | ||||
23 | 12345678 | ||||
24 | 12345678 | ||||
Export |
This is the needed results
plus 5 dupes.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | FIRST_NAME | LAST_NAME | ACCOUNT_NBR | ||
2 | 123 | ||||
3 | 123 | ||||
4 | 123 | ||||
5 | 12 | ||||
6 | 12 | ||||
7 | 123456 | ||||
8 | 123456 | ||||
9 | 123456 | ||||
10 | 123456 | ||||
11 | 123456 | ||||
12 | 123456 | ||||
13 | 1234 | ||||
14 | 1234 | ||||
15 | 1234 | ||||
16 | 1234 | ||||
17 | 12345678 | ||||
18 | 12345678 | ||||
19 | 12345678 | ||||
20 | 12345678 | ||||
21 | 12345678 | ||||
22 | 12345678 | ||||
23 | 12345678 | ||||
24 | 12345678 | ||||
Export |