Complex Conditional Formatting

TrustMyUnit

New Member
Joined
Jun 24, 2019
Messages
2
Hi all :nya:

First time poster, great to be here! I've always been a big fan of Excel ;)

I'm wondering if you could help me with a requirement I have please. We have two columns, one is our part number, and another is a supplier's part number:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Our Part Number[/TD]
[TD]Supplier's Part Number[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]FG-677[/TD]
[/TR]
[TR]
[TD]67890[/TD]
[TD]FG-688[/TD]
[/TR]
[TR]
[TD]24680[/TD]
[TD]FG-699[/TD]
[/TR]
[TR]
[TD]13579[/TD]
[TD]FG-699[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]FG-677[/TD]
[/TR]
</tbody>[/TABLE]

The situation is that duplicate Supplier Part Number's in column B is fine as long as column A is the same for each duplicate. In this example, I would want the row with Our Part Number as 13579 to be highlighted, as it's a duplicated Supplier Part Number, but the Our Part Number on those rows are different.

Is this even possible please? :laugh:

Thank you so much in advance!
Matt
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
one way, assuming A and B cols above. In C2
=TRIM(A2&B2), drag down then conditional format C for duplicates, you could then eliminate any known duplicates. Then sort by supplier part number. I'm sure there is a way to highlight more than one match, but this will get you close to start with
 
Upvote 0
one way, assuming A and B cols above. In C2
=TRIM(A2&B2), drag down then conditional format C for duplicates, you could then eliminate any known duplicates. Then sort by supplier part number. I'm sure there is a way to highlight more than one match, but this will get you close to start with

Thanks mole! I really appreciate your answer, and sorry for the delay. We have cracked this, so I wanted to post the answer here for anyone that comes across this thread in future.

We modified the table to be this: https://calc.disroot.org/8xeqi0nxhp8o

Essentially, added a column which conjoined Our Part Number and Supplier Part Number. Made another column which had TRUE/FALSE for whether the Supplier Part Number was duplicated, and yet another column to show TRUE/FALSE for whether the conjoined number was duplicated. If the first column says true, but the second says false, it's shown as YES in the 'Is this a problem?' column.


Thanks again for your help, and I hope this helps someone else!
 
Upvote 0
Hi, just a another option..

You could try this to return the Yes/No in the 'Is this a problem' column.


Excel 2013/2016
ABC
1Our Part NumberSupplier's Part NumberIs problem?
212345FG-677No
367890FG-688No
424680FG-699Yes
513579FG-699Yes
612345FG-677No
Sheet1
Cell Formulas
RangeFormula
C2=IF(COUNTIFS(B:B,B2)-COUNTIFS(A:A,A2),"Yes","No")


Or you could use this formula directly in conditional formatting with the "use a formula" method:

=COUNTIFS($B:$B,$B2)-COUNTIFS($A:$A,$A2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,169
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