PC Review


Reply
Thread Tools Rate Thread

Adding color to an if statement

 
 
Tom
Guest
Posts: n/a
 
      22nd Apr 2009
I am using a simple if statement that returns "valid" or "Invalid" depending
on the value in cell a1 . Is it possible to add a color to the "valid" for
instance so that valid displays green and "invalid" displays red? Can the
formatting be contained right inside the If statement or does it require
conditional formatting? How would I do it using conditional formatting ?

Thanks
 
Reply With Quote
 
 
 
 
BruceM
Guest
Posts: n/a
 
      22nd Apr 2009
Your reference to Cell A1 makes me wonder if this is an Excel question. If
so, Exel has conditional formatting as an option, but you would do best to
ask about the details in an Excel group. This group is for discussions
about Microsoft Access, a relational database program. The web interface is
not always clear.

"Tom" <(E-Mail Removed)> wrote in message
news:1181CFDD-ED4B-401B-975B-(E-Mail Removed)...
>I am using a simple if statement that returns "valid" or "Invalid"
>depending
> on the value in cell a1 . Is it possible to add a color to the "valid" for
> instance so that valid displays green and "invalid" displays red? Can the
> formatting be contained right inside the If statement or does it require
> conditional formatting? How would I do it using conditional formatting ?
>
> Thanks



 
Reply With Quote
 
Maelick22
Guest
Posts: n/a
 
      23rd Apr 2009
hold on do u mean that ur trying to attach a string to a word rather than
simply 1 and 0? and yes and no?


"Tom" <(E-Mail Removed)> wrote in message
news:1181CFDD-ED4B-401B-975B-(E-Mail Removed)...
>I am using a simple if statement that returns "valid" or "Invalid"
>depending
> on the value in cell a1 . Is it possible to add a color to the "valid" for
> instance so that valid displays green and "invalid" displays red? Can the
> formatting be contained right inside the If statement or does it require
> conditional formatting? How would I do it using conditional formatting ?
>
> Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a custom color in color dialog box Zach Microsoft C# .NET 1 13th Nov 2007 10:55 AM
color fill button is not adding color to my spread sheet =?Utf-8?B?bWl0Y2hubWQ=?= Microsoft Excel Worksheet Functions 1 26th Sep 2007 04:36 PM
iif statement color Please Help! =?Utf-8?B?Sk9N?= Microsoft Access 5 9th Dec 2005 10:13 PM
Color in an IF statement =?Utf-8?B?U2hhcm9u?= Microsoft Excel Worksheet Functions 2 28th Apr 2004 09:50 PM
ADDING CUSTOM COLOR TO FONT COLOR BUTTON R A Jenkins Microsoft Word Document Management 1 4th Nov 2003 09:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:30 AM.