+ Reply to Thread
Results 1 to 3 of 3

How do I conditional format a cell to be a certain colour depending on certain criteria?

Hybrid View

  1. #1
    Registered User
    Join Date
    12-05-2014
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    45

    How do I conditional format a cell to be a certain colour depending on certain criteria?

    Hi all

    On the attached example, I'm looking for a way in which I can have cell D2 automatically highlighted as a different colour based on if it matches criteria. This is what I need:

    Cell D2 will be coloured green if it is equal or less than cell C2.
    Cell D2 will be coloured orange if it is higher than cell C2 but less than or equal to cell B2.
    Cell D2 will be coloured red if it is higher than cell B2.

    Can anyone offer any advice please?
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How do I conditional format a cell to be a certain colour depending on certain criteri

    Read the link that i provide to learn how to use CF.

    How can you use Conditional Formating.

    --In Excel 2007 and 2010, Conditional Formatting is in the Styles group on the Home tab. In Excel 2003, Conditional Formatting is on the Format menu. See here how you can work using CF.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: How do I conditional format a cell to be a certain colour depending on certain criteri

    See attached...
    Formatting Example(1).xlsx

    I simply created 3 formula rules...
    For Green... =D2<=C2
    For Yellow.. =AND(D2,D2<=B2)
    For Red..... =D2>B2

    Make sure to check of the "Stop If True" for the Green & Yellow...

    Let me know if this is what you are looking for...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Select and colour cell depending on rank of number (macro conditional formatting)
    By mrpwebb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2014, 03:59 PM
  2. [SOLVED] Format of one cell depending on the colour of another
    By sacha.dyer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2014, 03:25 PM
  3. Replies: 1
    Last Post: 07-03-2012, 01:18 AM
  4. Format Cell Font (Type & Colour) depending on value
    By GrazP in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2010, 08:10 PM
  5. Replies: 5
    Last Post: 10-20-2009, 10:03 AM

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