Change font style based on value in column C

Aussiebear

New Member
Joined
Mar 23, 2008
Messages
30
I am looking for code that enables the active row to change the font format providing the value of the cell in column c = Yes.

Currently the value in column c is boolean in function ( either Yes or No). I am using the following formula to determine its value:
=If(B2=" "," ",IF(K2=" "," ",IF(I2>H2,"Yes","No")))
Normal font for the active row is Arial, Bold and Dark Blue when the value is "No". I am hoping that once the value is "Yes", then the font is Arial, Non bold & Grey.

How do I do this?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Also you could streamline your formula in C2 to

=IF(OR(B2=" ",K2=" ")," ",IF(I2>H2,"Yes","No"))

What happens to previously active rows when you change row -- should prior rows that were formatted differently change back to default ?

(like a row highlight or are you trying to highlight all rows that have C = Yes on an incremental basis...confused)
 
Upvote 0
Select row 2 and choose Format|Conditional Formatting from the menu. Condition 1 Formula is:

=$C2="Yes"

choose a Format and click OK twice.
 
Upvote 0
Thank you Andrew. I will try this at work tomorrow.

lasw10, Thank you as well. Basicily once a Contract is closed, the value in column c turns "yes" and remains this way. Sorry if I was confusing in my post.
 
Upvote 0
Andrew, in thinking about this a little further, how do i create this effect over a number of rows? Do I need to create a conditional format per row or create code to do so?
 
Upvote 0
You can select all the rows and use my formula, provided that row 2 is the active row when you enter it.
 
Upvote 0

Forum statistics

Threads
1,215,040
Messages
6,122,806
Members
449,095
Latest member
m_smith_solihull

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