+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 - Is there a way to color a cell when the IF statement is TRUE

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Question Excel 2007 - Is there a way to color a cell when the IF statement is TRUE

    Hi,

    I’m not sure if this is possible with a formula, however I have the below formula and I would like the cell to be a different color when it returns the TRUE value and stay the same color when it returns the FALSE Value ($M10)

    =IFERROR(LOOKUP(2,1/INDEX('CONTRACT PRICES'!$E:$E=$B10,0),'CONTRACT PRICES'!$T:$T),$M10)

    Thank you in advance for your help.
    Rique

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Excel 2007 - Is there a way to color a cell when the IF statement is TRUE

    Well, you can't color it with the IF formula, but you can add conditional formatting. For instance, select the cell that stores the result and apply these CF rules (use different formats for each rule):

    Rule 1: =$M10
    Rule 2: =D3<>$M10 (replace D3 with the cell your formula is actually in)

    - Moo

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Excel 2007 - Is there a way to color a cell when the IF statement is TRUE

    Hi Moo,

    Thanks i have used conditional Formatting and this has helped.

    Regards,
    Rique

+ 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