Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change the color of text when a value is present in a cell.

Status
Not open for further replies.

tbtcust

Programmer
Joined
Oct 26, 2004
Messages
214
Location
US
Hi all,
I would like excel to change the text from normal to red when a negative number is in a that cell.

I would also like excel to change text from normal to blue when a string is present in that cell.

Is this possible to have excel do this automatically?


Thanks in advance for any help.
 
Select cells to be formatted and then

Format / Conditional Formatting.

Rule 1 - If cell value is less than 0 then RED FONT
Rule 2 - Cell FORMULA is =ISTEXT(Cell Ref of Upper left of range to be formatted)

OR

just apply a custom format of:-

#,##0.00;[Red]-#,##0.00;0.00;[Blue]General

Regards
Ken..............

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Thanks Ken. The Format / Conditional Formatting works well.
 
You're welcome :-)

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
Just for interest, a Custom Number format of:
#,##0;[Red]-#,##0;0;[Blue]@

will do the same.

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top