Conditional Formatting on Multiple Cell Values

hellojamielee

New Member
Joined
Sep 17, 2014
Messages
2
Hi,

I am completely stuck on figuring out how to do this one. not sure if I am just makig it way too complicated.

I am wanting to highlight the cell A1, if O1 does not match the value of R1, but P1 does match the value of R1.

I also need to adapt this so there will be more cells that need to match the value of R1.

For example, highlight the cell A1, if L1 does not equal the value of R1, but P1, O1, N1, and M1 do match the value of R1.

I hope that makes sense :S

I am using Excel 2010!

Thanks!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

skywriter

Well-known Member
Joined
Feb 15, 2014
Messages
1,642
So I have something that should work. I tried it with what I think is your criteria and it worked fine.
I also have Excel 2010. So select cell A1 go to the ribbon - select home - conditional formatting - new rule
select use a formula to determine which cells to format.
Enter the formula below and choose your highlighting preference.
Good luck.

Code:
 =OR(AND(O1<>R1,P1=R1),AND(L1<>R1,P1=R1,O1=R1,N1=R1,M1=R1))
 
Upvote 0

hellojamielee

New Member
Joined
Sep 17, 2014
Messages
2
So I have something that should work. I tried it with what I think is your criteria and it worked fine.
I also have Excel 2010. So select cell A1 go to the ribbon - select home - conditional formatting - new rule
select use a formula to determine which cells to format.
Enter the formula below and choose your highlighting preference.
Good luck.

Code:
 =OR(AND(O1<>R1,P1=R1),AND(L1<>R1,P1=R1,O1=R1,N1=R1,M1=R1))

Thank you so much! Worked perfectly :)
 
Upvote 0

Forum statistics

Threads
1,191,003
Messages
5,984,109
Members
439,872
Latest member
noaman79

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