Computing.Net > Forums > Office Software > Change Excel text color based on data range

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Change Excel text color based on data range

Reply to Message Icon

Name: Carrie2525
Date: May 24, 2009 at 08:33:11 Pacific
OS: Windows Vista
Product: Sony / Vgn-cr420e
Subcategory: Microsoft Office
Comment:

Hello. I am fairly new to conditional formating in Excel and would appreciate some help with a basic request. I use Excel 2007, and I would like to change the color of my entered text based on a value range.

Here is an example: From cells C9:D16, if the value is > -0.75 and < 0.75, I would like the text in the cell to turn to a specific shade of light green. (Basically, I want it to match the background color of the cell, so that the text appears to be invisible, but the data is still there.) If the value is anywhere outside of these parameters, I would like the text to appear in black so that the user can see the text.

Please forgive any redundancy--I see that this type of question has been answered here before, but although I have tried, I haven't had any luck modifying those answers to fit my issue.

Thank you in advance for your help.

Carrie



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: May 24, 2009 at 08:58:17 Pacific
Reply:

Select C9:D16

Choose Format...Conditional Formatting...Formula Is...

Enter: =IF(AND(C9>-0.75,C9<0.75),TRUE,FALSE)

Chose Format...Font tab...Color...Choose your text color.

Click OK, OK.

This will CF the entire range.


0

Response Number 2
Name: Carrie2525
Date: May 24, 2009 at 14:15:35 Pacific
Reply:

DerbyDad,

Thanks for the quick reply! I must be doing something wrong, though. In Excel 2007, the CF function has its own button on the Home tab. When you click it, it takes you to the drop down menu. The New Rule option takes you to its own submenu, and I can't figure out how to make your rule work within that submenu. Could you provide some additional guidance?

Thanks,

Carrie


0

Response Number 3
Name: Mike (by mmcconaghy)
Date: May 24, 2009 at 15:38:05 Pacific
Reply:

I believe it's:

Home Tab
Conditional Formatting
New Rule

At the bottom of the top section, select:

Use a formula to determine which cells to format

In the input box

Insert DerbyDad03's formula.

Select the Format button
Select the Fill Tab
Select your pretty color

Click Ok
Click OK

MIKE

http://www.skeptic.com/


0

Response Number 4
Name: DerbyDad03
Date: May 24, 2009 at 16:35:15 Pacific
Reply:

Except that you should probably choose whatever option it is for text color since that is what you are trying to CF.


0

Response Number 5
Name: Mike (by mmcconaghy)
Date: May 24, 2009 at 17:13:12 Pacific
Reply:

OOPS, Revision:

Select the Format button
Select the Font Tab
Select Color

choose your color.

Click Ok
Click OK

MIKE

http://www.skeptic.com/


0

Related Posts

See More



Response Number 6
Name: Carrie2525
Date: May 24, 2009 at 21:33:50 Pacific
Reply:

DerbyDad & Mike,

Thank you both so much! The formulas worked perfectly. Thanks for the assist--I've been working on this issue for days. :-)

Carrie


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Change Excel text color based on data range

Excel Formatting Colors www.computing.net/answers/office/excel-formatting-colors/6855.html

changing excel cell color www.computing.net/answers/office/changing-excel-cell-color/9608.html

Date based on data in another cell www.computing.net/answers/office/date-based-on-data-in-another-cell/9266.html