+ Reply to Thread
Results 1 to 4 of 4

help needed

  1. #1
    Pat Watson
    Guest

    help needed

    I have a budget calculator to return a value Good Bad or OK dependent on
    status based upon
    =IF(B109>B108,"GOOD",IF(B109<B108,"BAD",IF(B109=B108,"OK")))

    What I am looking to do in addition to this would be set the cell colour to
    red green or blue according to the status how could I do this?

    Any help appreciated.



  2. #2
    Bob Phillips
    Guest

    Re: help needed

    First simplify the formula

    =IF(B109>B108,"GOOD",IF(B109<B108,"BAD","OK"))

    Colour with conditional formatting

    Select the cell
    Menu Format>Conditional Formatting
    Set to equal
    Value of BAD
    Click the Format button
    Select the Pattern Tab
    Select red
    OK

    Second condition

    Click Add
    Set to equal
    Value of GOOD
    Click the Format button
    Select the Pattern Tab
    Select green
    OK

    Third condition

    Click Add
    Set to equal
    Value of OK
    Click the Format button
    Select the Pattern Tab
    Select blue
    OK


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Pat Watson" <patsywatson@baesystems.com> wrote in message
    news:4406d769_1@glkas0286.greenlnk.net...
    > I have a budget calculator to return a value Good Bad or OK dependent on
    > status based upon
    > =IF(B109>B108,"GOOD",IF(B109<B108,"BAD",IF(B109=B108,"OK")))
    >
    > What I am looking to do in addition to this would be set the cell colour

    to
    > red green or blue according to the status how could I do this?
    >
    > Any help appreciated.
    >
    >




  3. #3
    Dave Peterson
    Guest

    Re: help needed

    Take a look at Format|Conditional formatting.

    You get to specify up to 3 conditions--so it sounds perfect for you.

    Pat Watson wrote:
    >
    > I have a budget calculator to return a value Good Bad or OK dependent on
    > status based upon
    > =IF(B109>B108,"GOOD",IF(B109<B108,"BAD",IF(B109=B108,"OK")))
    >
    > What I am looking to do in addition to this would be set the cell colour to
    > red green or blue according to the status how could I do this?
    >
    > Any help appreciated.


    --

    Dave Peterson

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    a simple way is to goto conditional formating
    highlight the range you want to format then goto
    format
    conditional format
    you can do a couple of things, , but the easiest would by just to say is equal to:
    Good
    then hit the format button and select what you want
    press ok,ok
    you can format this way,I believe up to three times, If you need more conditions then things would get more serious and you would have to go with VBA.

    Also, do a search in your forum, this is definitly not a new topic.

+ 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