Conditional Formatting - On 2 Cells Values

nniedzielski

Well-known Member
Joined
Jan 8, 2016
Messages
598
Office Version
  1. 2019
Platform
  1. Windows
I am working on a spreadsheet similar to this, and i need the row to light up red if the cells in A and C match another row, but needs to be both values matching another row .

like this: many thanks in advance

1639772138473.png
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=COUNTIFS($A$2:$A$20,A2,$C$2:$C$20,C2)>1
 
Upvote 0
Solution
How about
Excel Formula:
=COUNTIFS($A$2:$A$20,A2,$C$2:$C$20,C2)>1
so, that does work, this worksheet is going to keep growing, will likely exceed 100,000 rows, how would i alter the formula so that the worksheet never outgrows the formula?
 
Upvote 0
You could use whole column references, but on that amount of data it may be pretty slow, if not unusable.
 
Upvote 0
OK Fluff, that works awesome, now my column D is all True and False like it should be, so now, how do i get the rows to light up red? Google got me nowhere. I followed the video, nothing turned color.
 
Upvote 0
HI Fluff, I figured out the formatting part, one issue though, on rows that are blank, it lights up red, how can i avoid those rows?
 
Upvote 0
How about
Excel Formula:
=AND($A2<>"",COUNTIFS($A$2:$A$20,$A2,$C$2:$C$20,$C2)>1)
 
Upvote 0

Forum statistics

Threads
1,215,787
Messages
6,126,901
Members
449,348
Latest member
Rdeane

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