Complex filter

Astuce

New Member
Joined
Nov 3, 2014
Messages
1
Hi guys,

Im having difficulty with a something. I have three columns, first contains names, second contains a code and third contains a number. However, i have several times the same name even if the code and number that go with it are different. Exemple

Name
Code
Mark
Tony
a
62
John
a
70
John
c
68
Stephanie
d
80
Stephanie
c
75
Stephanie
f
82

<tbody>
</tbody>

I want to produce a table where i have every name only once, but i need to find a way to keep the right rows. In my case, i would like to keep code a > b > c > d > ... depending on which exist.

NameCodeMark
Tony
a
62
Johna70
Stephaniec75
<colgroup><col width="80" style="width: 60pt;" span="3"> <tbody> </tbody>

I've already worked with advanced filter before, but nothing this complex .... Need help
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi,

First of all, backup your data first, to be safe in case something goes wrong.

Now sort your data by two fields: name first, code next. Mark the sorted area.
Next go to "Data" tab on the ribbon and choose "Remove duplicates". From the menu, choose "Name" as the only column with duplicates.
This will leave only the first row with each name, i.e., by sorting, the one you want.

Best,

J.Ty.
 
Upvote 0

Forum statistics

Threads
1,215,730
Messages
6,126,527
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top