Removing duplicates in various categories in a column

buhaj47

New Member
Joined
Jan 13, 2015
Messages
10
At my work I have to use reports that show various numbers for various categories, e.g. countries. Sometimes there are more than one lines for each category, and I need to remove duplicates. The issue is the numbers start from the same numbers for each category, so I do not want to use the usual function to remove duplicates.

Here is an example list:

image.jpg


I would like Excel to remove duplicates separately from each country so that the result is:

image.jpg


What formula/function to use?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try this formula in the first blank column (in this case looks like that will be C) =COUNTIFS($A$2:A2,A2,$B$2:B2,B2)

This tells you that (for example on row 2 that this is the 1st row that has country "AUT" and request "REQ001"
on row 3 this is the 2nd row that has country "AUT" and request "REQ001"

Then you can either delete the rows where result is more than 1 , or copy all the lines with result of 1 to a new sheet



COUNTRYrequestCOUNT
AUTREQ0011
AUTREQ0012
AUTREQ0013
AUTREQ0021
ENGREQ0011
ENGREQ0012
ENGREQ0021
ENGREQ0022
ENGREQ0031
POLREQ0011
POLREQ0012
POLREQ0021
TAIREQ0011
TAIREQ0012
TAIREQ0021
TAIREQ0022

<tbody>
</tbody><colgroup><col span="2"><col></colgroup>






 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,681
Members
449,048
Latest member
81jamesacct

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