+ Reply to Thread
Results 1 to 3 of 3

Changing text colour via a logical function

  1. #1
    Registered User
    Join Date
    06-01-2011
    Location
    London, England
    MS-Off Ver
    MS Office 2007
    Posts
    4

    Question Changing text colour via a logical function

    Is there a way to change the colour of a number as a result of a conditional IF statement. Something like this:

    IF( C1 > 50, change text colour ("Greater than 50"), "Less than 50")

    Result if C1 = 60
    Greater than 50
    Result if C1 = 20
    Less than 50
    Last edited by Spudgunner; 06-01-2011 at 01:56 PM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Changing text colour via a logical function

    Yeah you can go with
    if(c1>50,"*","")
    and set up conditional formatting so that if the cell contains * then it will change green... or whatever.
    Or, by the sounds of it, you want it to output a number, so just use conditional formatting to say if cell value is greater thn 50 - and set the format to red.
    Last edited by mewingkitty; 06-01-2011 at 12:59 PM.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Registered User
    Join Date
    06-01-2011
    Location
    London, England
    MS-Off Ver
    MS Office 2007
    Posts
    4

    Thumbs up Re: Changing text colour via a logical function

    Quote Originally Posted by mewingkitty View Post
    Yeah you can go with
    if(c1>50,"*","")
    and set up conditional formatting so that if the cell contains * then it will change green... or whatever.
    Or, by the sounds of it, you want it to output a number, so just use conditional formatting to say if cell value is greater thn 50 - and set the format to red.
    Thanks, that'll work

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1