Removing Duplicate key and selecting one record based on each id

MrOnlyOne

New Member
Joined
Aug 30, 2017
Messages
2
[TABLE="width: 537"]
<colgroup><col span="2"><col><col></colgroup><tbody>[TR]
[TD] (A)
User ID[/TD]
[TD] (B)
Username[/TD]
[TD]
(C)
Highest Education Level[/TD]
[TD] (D)
Qualification Obtained[/TD]
[/TR]
[TR]
[TD="align: right"]1001[/TD]
[TD="align: right"]1001[/TD]
[TD][/TD]
[TD]Postgraduate Certification[/TD]
[/TR]
[TR]
[TD="align: right"]1001[/TD]
[TD="align: right"]1001[/TD]
[TD][/TD]
[TD]Bachelors Degree[/TD]
[/TR]
[TR]
[TD="align: right"]1001[/TD]
[TD="align: right"]1001[/TD]
[TD][/TD]
[TD]Masters Degree[/TD]
[/TR]
[TR]
[TD="align: right"]2001[/TD]
[TD="align: right"]2001[/TD]
[TD][/TD]
[TD]Bachelors Degree[/TD]
[/TR]
[TR]
[TD="align: right"]2001[/TD]
[TD="align: right"]2001[/TD]
[TD][/TD]
[TD]Vocational/Technical/Trade Certificate[/TD]
[/TR]
[TR]
[TD="align: right"]2003[/TD]
[TD="align: right"]2003[/TD]
[TD][/TD]
[TD]Diploma[/TD]
[/TR]
[TR]
[TD="align: right"]4020[/TD]
[TD="align: right"]4020[/TD]
[TD][/TD]
[TD]Diploma[/TD]
[/TR]
[TR]
[TD="align: right"]4020[/TD]
[TD="align: right"]4020[/TD]
[TD][/TD]
[TD]Junior High/O Levels[/TD]
[/TR]
</tbody>[/TABLE]


I need help in filling up the highest education level column. The ranking is as follows:

Doctoral Degree (PHD)
1
Masters Degree
2
Postgraduate Certification
3
Bachelors Degree
4
Diploma
5
Senior High/A Levels
6
Vocational/Technical/Trade Certificate
7
Junior High/O Levels
8
Secondary and below
9

<tbody>
</tbody>


In conclusion: i only want the highest qualification and only one record for each user id

This is my code for the highest education level but i need help in removing duplicate and selecting the highest education level.

=IF(D2="Doctoral Degree","Doctoral Degree",IF(D2="Masters Degree","Masters Degree",IF(D2="Postgraduate Certification","Postgraduate Certification",IF(D2="Bachelors Degree","Bachelors Degree",IF(D2="Diploma", "Diploma",IF(D2="Senior High/A Levels","Senior High/A Levels",IF(D2="Vocational/

Thanks in Advance.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Re: Help with Removing Duplicate key and selecting one record based on each id

For instance user id 1001, should be only one record and the highest education level is Postgraduate in this case.
 
Upvote 0

Forum statistics

Threads
1,222,562
Messages
6,166,805
Members
452,073
Latest member
akinch

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