Conditionally removing duplicates

aviktora

New Member
Joined
Oct 9, 2011
Messages
22
I'm looking for a way to identify the highest valued Job ID (Column B) for each of the Incident Numbers (Column A). I need to flag the row with the highest value so that I can easily delete the other rows. Rows to keep are in Green.

Here is the data:


Column A Column B
Incident NumberJob Id NAMECURRENT_STAT
5482341237479 06.005 CRAFT RD (914) - RERetrieved
5482341237353 06.005 CRAFT RD (914) - RERetrieved
5482341179216 06.005 CRAFT RD (914) - RERetrieved
5808701460187 07.002 KINGSTON ST (3089) - RERetrieved
5808701450542 07.002 KINGSTON ST (3089) - RERetrieved
5808701385586 07.002 KINGSTON ST (3089)Retrieved

<tbody>
</tbody>
 

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.
you can try this formula in conditional formatting.

select the range first though

Excel 2012
ABCD
1Incident NumberJob IdNAMECURRENT_STAT
2548234123747906.005 CRAFT RD (914) - RERetrieved
3548234123735306.005 CRAFT RD (914) - RERetrieved
4548234117921606.005 CRAFT RD (914) - RERetrieved
5580870146018707.002 KINGSTON ST (3089) - RERetrieved
6580870145054207.002 KINGSTON ST (3089) - RERetrieved
7580870138558607.002 KINGSTON ST (3089)Retrieved
8#VALUE!=$B2=MAX(IF($A$2:$A$7=$A2,$B$2:$B$7))

<tbody>
</tbody>
Sheet6

Worksheet Formulas
CellFormula
B8=$B2=MAX(IF($A$2:$A$7=$A2,$B$2:$B$7))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
you can try this formula in conditional formatting.

select the range first though

Excel 2012
ABCD
1Incident NumberJob IdNAMECURRENT_STAT
2548234123747906.005 CRAFT RD (914) - RERetrieved
3548234123735306.005 CRAFT RD (914) - RERetrieved
4548234117921606.005 CRAFT RD (914) - RERetrieved
5580870146018707.002 KINGSTON ST (3089) - RERetrieved
6580870145054207.002 KINGSTON ST (3089) - RERetrieved
7580870138558607.002 KINGSTON ST (3089)Retrieved
8#VALUE!=$B2=MAX(IF($A$2:$A$7=$A2,$B$2:$B$7))

<tbody>
</tbody>
Sheet6

Worksheet Formulas
CellFormula
B8=$B2=MAX(IF($A$2:$A$7=$A2,$B$2:$B$7))

<tbody>
</tbody>

<tbody>
</tbody>

I changed the row number 7 to the end number in my dataset 4344. The formula seems to work for a while, but then there are gaps of about 200 rows that the conditional formatting seems to skip over. Any idea why?
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,040
Members
448,543
Latest member
MartinLarkin

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