xcellerator
New Member
- Joined
- Feb 22, 2017
- Messages
- 23
- Office Version
- 2019
- Platform
- MacOS
Hello -
I am trying to remove all rows *except* the rows that contain duplicate information in one specific field.
In the below example I am focused on leaving the full row of any entry for which the VIN number appears more than once in the file.
The data might be poorly entered (so someone might enter the wrong model or color of car), but the VIN number is always correct.
Is there a way to do this without VBA? (FYI on a Mac) That would be ideal. I am thinking I need to have a full helper column to filter off of, but am wondering if there is a more elegant way.
I am trying to remove all rows *except* the rows that contain duplicate information in one specific field.
In the below example I am focused on leaving the full row of any entry for which the VIN number appears more than once in the file.
The data might be poorly entered (so someone might enter the wrong model or color of car), but the VIN number is always correct.
Is there a way to do this without VBA? (FYI on a Mac) That would be ideal. I am thinking I need to have a full helper column to filter off of, but am wondering if there is a more elegant way.
mrexcel-filter.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | Customer | Manufacturer | Model | VIN | Sale Date | Color | ||
2 | Bob | Ford | Escape | 123456 | 20200604 | Red | ||
3 | Riley | Tesla | Model S | 111 | 20190407 | Red | ||
4 | Ann | Pontiac | Aztek | 1000000 | 20191112 | Yellow | ||
5 | Sam | Ford | Bronco | 123456 | 20200104 | Red | ||
6 | Bill | Subaru | Brat | 111111 | 20180602 | Black | ||
7 | Carol | Chevy | Vega | 111 | 19851010 | Red | ||
8 | Katie | Renault | Le Car | 222222 | 20170308 | Black | ||
9 | Sally | Ford | Escape | 123456 | 20160302 | Blue | ||
10 | Tom | Pontiac | Aztek | 456456 | 19801103 | Silver | ||
11 | Oscar | AMC | Pacer | 10101010 | 19721022 | Silver | ||
12 | ||||||||
13 | ||||||||
14 | Desired output: full row of any row where there are 2 or more sales with the same VIN | |||||||
15 | ||||||||
16 | Customer | Manufacturer | Model | VIN | Date | Color | ||
17 | Bob | Ford | Escape | 123456 | 20200604 | Red | ||
18 | Sam | Ford | Bronco | 123456 | 20200104 | Red | ||
19 | Bob | Ford | Escape | 123456 | 20160302 | Blue | ||
20 | Riley | Tesla | Model S | 111 | 20190407 | Red | ||
21 | Carol | Chevy | Vega | 111 | 19851010 | Red | ||
adv-filter-dupe-1 |