Conditional formatting based the content of 2 cells

Chevy_wench

New Member
Joined
Nov 16, 2005
Messages
2
I want say.... in cell q2 for it to first look at d2 to see if I have a "C" or "S" in that cell, if d2 has "C" and the formula in q2 equals 170 or greater then q2 turn red and bold or if d2 has a "S" and the formula in q2 equals 300 or greater then turn red and bold. In english if a person is type C than they can not go over 170 and if they are type S than they can not go over 300. I don't want to have to sort by C & S then apply a conditional format. Please help, I've been frying my brain on this spreadsheet.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Format > Conditional formatting

"formula is"

=OR(AND(D2="C",Q2>=170),AND(D2="S",Q2>=300))

set red font and bold
 
Upvote 0
Thank you very much! It worked and worked great! After applying that, I came up with a couple more ideas, but I want to try to do them myself first before I ask for any help. I felt like I should have been able to figure this one out on my own, but after a while I felt like I was chasing my own tail in the same circles. Again, thank you!!
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,091
Latest member
gaurav_7829

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