Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Change text color in an IF...THEN...ELSE formula

Hi -
I have a cell with a date in it. I've conditionally formatted the text
to be red if it is past a certain date. What I need to do now is
change the text back to black if the date is past a certain date but
the criteria in another cell is a certain criteria. I don't know how
to address text color w/in a formula. Here's an idea of what I have
(minus the correct way to format the text forecolor property):

IF(AND(Y:Y="red", Z:Z="G"), "black", "red")

The "G" is the other criteria.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Change text color in an IF...THEN...ELSE formula

Andrew,

You can't do it in a formula (without a VBA function), but just change the
CF function to test the other criteria as well, that is only set it if it is
past the certain date but not with the other criteria.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"andrewowens" wrote in message
...
Hi -
I have a cell with a date in it. I've conditionally formatted the text
to be red if it is past a certain date. What I need to do now is
change the text back to black if the date is past a certain date but
the criteria in another cell is a certain criteria. I don't know how
to address text color w/in a formula. Here's an idea of what I have
(minus the correct way to format the text forecolor property):

IF(AND(Y:Y="red", Z:Z="G"), "black", "red")

The "G" is the other criteria.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
change color if text is = or not, to text in other column KittyLover New Users to Excel 7 June 2nd 09 02:36 AM
Can Text Function change output text color? epiekarc Excel Discussion (Misc queries) 1 December 31st 08 02:58 AM
How do I change formula results by changing the text color of the bailfire13 Excel Discussion (Misc queries) 4 May 31st 06 04:41 PM
Stumped: If a cell contains a formula, can you make text color automatically change? qwopzxnm Excel Worksheet Functions 7 April 5th 06 04:07 AM
Change of text or background color doesn't change on the screen. Susan Excel Discussion (Misc queries) 5 July 29th 05 07:18 PM


All times are GMT +1. The time now is 10:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"