If Statement Questions

phorst

New Member
Joined
Mar 14, 2007
Messages
5
Hello,
First timer.
I am using Excel 2003, on XP SP2.
Here is my formula. =IF(F2<=B2,"GOOD","BAD")

Is there a way to change the color of my result, specifically I want "GOOD" to display in green and "BAD" to display in red.

Any help would be appreciated.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Welcome to the board
You will need to use Conditional formatting
See the Format menu in XL.
If bad and good are the only possibilities, you will only have to introduce one condition, the other being the default color

HTH
 
Upvote 0
Have you tried Conditional Formatting? Select one of the cells with your formula. From the Format menu, choose Conditional Formatting.

In Condition1, leave it as "Cell Value Is"; in the next field, change it to "equal to"; and in the last one key "Good". Then click the Format button and change the Pattern to green (you may want to make your font bold or white or both).

Click the the Add button to create Condition2. Repeat the process but with the word "Bad" and Pattern red.

Click OK. If nothing happens, go back into Conditional Formatting. For some odd reason, Excel likes to put extra quotes around your text values (I have no idea why it does this). If it shows """Good""", remove the extra quotes and click OK again--should be fine now.

Then just copy/paste this down through all of your IF formulas.
 
Upvote 0
I tried highlighting the text in the formula, and then tried to change the text color, but it is greyed out. Is this what you mean?
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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