+ Reply to Thread
Results 1 to 5 of 5

Change the cell fill color

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    Miami, Florida USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Change the cell fill color

    What is the structure an =if formula which will change the cell fill color?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Change the cell fill color

    You need Conditional Formatting found in the Format Menu...

    If you are more specific, then we may be able to help you set it up.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Change the cell fill color

    What is the structure an =if formula which will change the cell fill color?
    Excel Help is your friend.
    See the Help on the IF function for structure.

    As NBVC pointed out, you need to use Conditional Formatting. That being said, ALL formulas used in CF must evaluate to TRUE or FALSE

    e.g.
    SUM(A1 + B1) = 3 is TRUE if A1= 1 and B1 = 2
    SUM(A1 + B1) = 4 is FALSE if same values are used

    You may also want to read about comparison operators because they must be used with the IF function when using it in a CF formula.

  4. #4
    Registered User
    Join Date
    08-11-2009
    Location
    Miami, Florida USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Change the cell fill color

    OK!
    Currency values: cell A2 and B2 will be a manual entries. A table is filled based on on a formula
    =(A2 * A5) + 7.
    A2 is the constant in all cells throughout the table. A5 increases. B2 containes a value. If the cell content is less than the value in B2, then the cell fill color needs to change
    I think it may look something like this: =(A2*A5)+7, =IF(____<B2,______).
    I dont know what goes in the blanks.........

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Change the cell fill color

    Probably...

    Select the cell and go to Format|Conditional Formatting

    .. Cell Value is >> Less than >> =B2

    Click Format and choose colour pattern

+ 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