conditional formating rule

ericlch16

Active Member
Joined
Nov 2, 2007
Messages
313
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
I have two column A B
aa bb
rr tt

I have another column D E
aa bb
rr uu

I want A1 to turn red when A & B is equal D & E. in the example above only A1 will turn red. A2 will not turn red since B2 does not match E2

what is the conditional formatting rule to be inserted? if it is only one column, i can use vlookup but i have to match two columns?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
i forgot to mention that it might not be in order

So if two column A B
rr tt
aa bb


I have another column D E
aa bb
rr uu

A2 should turn red.....


I have two column A B
aa bb
rr tt

I have another column D E
aa bb
rr uu

I want A1 to turn red when A & B is equal D & E. in the example above only A1 will turn red. A2 will not turn red since B2 does not match E2

what is the conditional formatting rule to be inserted? if it is only one column, i can use vlookup but i have to match two columns?
 
Upvote 0
Maybe

=AND(ISNUMBER(MATCH(A1,D:D,0)),ISNUMBER(MATCH(B1,E:E,0)),MATCH(A1,D:D,0)=MATCH(B1,E:E,0))
 
Upvote 0
does not work :(

A6: 02-Aug-XX0001-9010
B6: -1

D3: 02-Aug-XX0001-9010
E3: -1

I want A6 to turn red as there is a perfect match on row 3 [D & E]

=AND(ISNUMBER(MATCH(A6,D:D,0)),ISNUMBER(MATCH(B6,E:E,0)),MATCH(A6,D:D,0)=MATCH(B6,E:E,0)) ???

Maybe

=AND(ISNUMBER(MATCH(A1,D:D,0)),ISNUMBER(MATCH(B1,E:E,0)),MATCH(A1,D:D,0)=MATCH(B1,E:E,0))
 
Upvote 0
Working with your original example data

Excel Workbook
ABCDE
1rrttaabb
2aabbrruu
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =AND(ISNUMBER(MATCH(A1,D:D,0)),ISNUMBER(MATCH(B1,E:E,0)),MATCH(A1,D:D,0)=MATCH(B1,E:E,0))Abc
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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