Identifying duplicate values in a range based on another criteria of duplicates

FMulho

New Member
Joined
May 23, 2017
Messages
9
I am trying to find a formula that allows me to do the following in order:
1) If the group ID is the same AND (2) if the Part # is the same as the (3) Part # with the minimum group price, highlight this.

For example below, I want to highlight part # MPN1 because it is has the same GroupID and Part # as the Part with lowest group price for group ABC:

[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]GROUPID[/TD]
[TD]PART #[/TD]
[TD]PRICE[/TD]
[TD]MIN GROUP PRICE[/TD]
[/TR]
[TR]
[TD]ABC
[/TD]
[TD]MPN1[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]MPN1[/TD]
[TD]0.50[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]MPN4[/TD]
[TD]1.00[/TD]
[TD]0.50[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]MPN3[/TD]
[TD]2.00[/TD]
[TD]1.50[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]MPN3[/TD]
[TD]2.50[/TD]
[TD]1.50[/TD]
[/TR]
[TR]
[TD]DEF[/TD]
[TD]MPN5[/TD]
[TD]1.50[/TD]
[TD]1.50[/TD]
[/TR]
</tbody>[/TABLE]

Any help is much appreciated!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Select columns A:C, click Conditional Formatting > New Rule > Use a formula > and enter:

=AND($B1=INDEX($B:$B,MATCH(MIN(IF($A$1:$A$100=$A1,$C$1:$C$100)),IF($A$1:$A$100=$A1,$C$1:$C$100),0)),$A1<>"")

and select your fill color. If you have column D, you can shorten the formula to:

=AND($B1=INDEX($B:$B,MATCH($D1,IF($A$1:$A$100=$A1,$C$1:$C$100),0)),$A1<>"")
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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