Conditional Formatting (Excel 2007)

EssKayKay

Board Regular
Joined
Jan 5, 2003
Messages
233
Office Version
  1. 2007
Platform
  1. Windows
I have a question on conditional formatting in Excel 2007 if you please.

Here is my formula:
="YTD: "&FIXED(G21/F21-1,3)*100 &"%"

The formula works fine. I just would like to change the color of the text in cell N12 based on certain conditions. If (G21/F21-1) is >=0 I want the color to be green; if <0, I want it to be red.
Now what may work better is if cell J21 is positive, color cell N12 green otherwise color cell N12 red.

Thanks,
Steve K.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
(G21/F21-1) is >=0 I want the color to be green
Just use a Conditional formatting formula of:
Excel Formula:
=(G21/F21-1)>=0
and choose your green color.

if <0, I want it to be red
Create another Conditional Formatting rule and use a Conditional formatting formula of:
Excel Formula:
=(G21/F21-1)<0
and choose your red color.
 
Upvote 0

Forum statistics

Threads
1,215,646
Messages
6,125,999
Members
449,279
Latest member
Faraz5023

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