Conditional formatting

t1o9n9y1

New Member
Joined
Dec 9, 2018
Messages
19
[TABLE="width: 500"]
<tbody>[TR]
[TD]JOB[/TD]
[TD]PERSON[/TD]
[TD]ISSUE[/TD]
[/TR]
[TR]
[TD]One[/TD]
[TD]TPK[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]One[/TD]
[TD]TPK[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]Two[/TD]
[TD]TPK[/TD]
[TD]B[/TD]
[/TR]
</tbody>[/TABLE]

Is it possible to change the colour of a cell if the values from both the 'PERSON' and
'ISSUE' columns match up. So because there are now two rows meeting the same criteria,
I want the cell with person in it to change to orange.

I've tried conditional formatting but it seems pretty limited, unless I'm looking at the wrong thing.

Thanks for you help.
 

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.
In CF > New rule > Use a formula > Select the format.
=COUNTIFS($A:$A,$A2,$B:$B,$B2)>1
 
Upvote 0
Would it also be possible so that if there is a single duplicate, it'll turn orange. However, if a third duplicate occurs, it'll turn red? Can that be done with this formula?
 
Upvote 0
You need to set 1 rule for each colour, so add another rule with the same formula but change the 1 to 2.
Make sure that the rule for red is above the rule for orange
 
Upvote 0
Okay. I can't quite get the formula to work. That table was just an example and doesn't fully reflect the actual table. So, this is what it currently looks like...
PERSON (G5-G30) ISSUE (I5-P30)

Each cell within the columns have a drop down menu. When the PERSON selection and the ISSUE selection appear together more than once, that's when I want the colour to change.
Would the formula you provided still work?

Thanks so much for your help by the way.
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD]PERSON[/TD]
[TD]ISSUE[/TD]
[/TR]
[TR]
[TD]TPK[/TD]
[TD]LATE[/TD]
[/TR]
[TR]
[TD]TPK[/TD]
[TD]LATE[/TD]
[/TR]
[TR]
[TD]TPK[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]TPK[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]TPK[/TD]
[TD]LATE[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
That's more accurate I think. The PERSON column goes from cells G5-G30 and the ISSUE column goes from cells I5-P30.
 
Upvote 0
I can't seem to get MrExcel to work.

The table is identical to this...
[TABLE="width: 500"]
<tbody>[TR]
[TD]... (A4-B30)[/TD]
[TD]... (C4-D30)[/TD]
[TD]... (E4-F30)[/TD]
[TD]Person (G4-H30)[/TD]
[TD]Issue (I4-P30)[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TPK[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TPK[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ND[/TD]
[TD]Late[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]TPK[/TD]
[TD]Absent[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]ND[/TD]
[TD]Absent[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


So because the person and issue match in the top two rows, I want that to highlight.
I have been using the duplicate function in conditional formatting, but it seems to only work based on
one column. I want it to read both columns and when the same entries appear in another row, I want it to be highlighted.
 
Upvote 0
That is just confusing me even more :confused:

Is "Person" a single column or 2 columns?
Is "Issue" 1 column or 8 columns?
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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