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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
(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,214,822
Messages
6,121,772
Members
449,049
Latest member
greyangel23

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