Conditional Formatting Formula

weefisheads

Active Member
Joined
Mar 18, 2006
Messages
351
I enter many lines of data and am trying to come up with a formula to catch Duplicate entries. However, to be considered duplicate, it has to meet TWO criteria.

In column A, I have Cars - Honda, Ford, Toyota, etc
In column B, I have Type - SUV, Hybrid, Coupe, etc

There can be multiple occurances of the cars (many Hondas, many Fords), and there can be multiple occurances of Type (many SUVs, many Roadsters). What I'm trying to come up with is Conditional Formatting on Column B so that if there are multiple occurances of a Car & Type, it is hightlighted Yellow. IE, if A2 is Toyota and B2 is Hybrid, B10 will be hightlighted if A10 is Toyota and B10 is Hybrid.

Ugh. I hope that makes sense.

I'm pretty sure I can do a SUMPRODUCT to generate True / False, but I'm having difficulty coming up with the syntax and not sure if that can be incorporated into Conditional Formatting.

Thanks!

dB
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

wsjackman

Well-known Member
Joined
Jun 19, 2008
Messages
2,465
maybe

conditional format formula in column B
=sumproduct((a$1:A1=a1)*(B$1:B1=B1))>1
 

Forum statistics

Threads
1,148,147
Messages
5,745,055
Members
423,917
Latest member
Frank1931

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
Top