Complex Conditional Formatting

TrustMyUnit

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

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:

Our Part NumberSupplier's Part Number
12345FG-677
67890FG-688
24680FG-699
13579FG-699
12345FG-677

<tbody>
</tbody>

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? :LOL:

Thank you so much in advance!
Matt
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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