+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting

  1. #1
    Registered User
    Join Date
    02-21-2010
    Location
    Scotland, UK
    MS-Off Ver
    Excel 2003
    Posts
    1

    Cool Conditional Formatting

    I already have conditional formatting in a cell so that if the cell value is less than a certain number the cell appears RED. The cell containa formula which is linked to other cells. I also want to add another condition which makes the cell appear a different colour should the value in another cell be greater than 0. For example: Cell A1 contains a formula and the conditional formatting means if the value is less than 100 the cell goes RED. If cell B1 contains a figure greater than 0 I want cell A1 to be a different colout, irrespective of it value, I want the 2nd condition ot take priority. How can I do this?
    Last edited by clylab; 02-21-2010 at 07:23 AM. Reason: SOLVED

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional Formatting

    Hi clylab,

    welcome to the forum.

    The key to this is the order of the conditions in the Conditional Formatting dialog.

    The first condition for A1 should be Formula Is
    =$B1>0

    the second condition should be
    =$A1<100

    Excel will evaluate B1 first, and if that condition is met, apply the format you set for it and exit the evaluation. Only if the condition is not true, will Excel evaluate the second condition.

    This way, the B1 evaluation will always take precedence

    hope that helps

+ 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