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>
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Weazel

Well-known Member
Joined
Dec 24, 2011
Messages
3,155
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>
 

aviktora

New Member
Joined
Oct 9, 2011
Messages
22
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?
 

Watch MrExcel Video

Forum statistics

Threads
1,109,518
Messages
5,529,314
Members
409,863
Latest member
stacy09
Top