+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting to turn cell different colors

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Conditional Formatting to turn cell different colors

    What is the appropriate formula?

    I would like cell D4 to turn green if:
    C4=F1

    I would like cell D4 to turn red if:
    M4>7

    I would like cell D4 to stay empty (or white) if:
    M4<7 or if C4 is empty

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting to turn cell different colors

    you need to use cnditional formatting to do this

    find it in the home tab/styles
    1. highlight D4 and any other cells in that range you want this to apply to
    2. click on CF, select NEW RULE and USE FORMULA.
    3. type in =C4=F1 - format as green
    4. click on CF, select NEW RULE and USE FORMULA.
    5. type in =M4.7 - format as red

    let me know how you make out?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Conditional Formatting to turn cell different colors

    Thank you. Works out except when both C4=F1 AND M4>7. It stays red.
    I would like the C4=F1 to trump any other formula. Any suggestions?
    Last edited by blackshag; 11-02-2012 at 07:44 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting to turn cell different colors

    in the main CF window, on the right, you can change the order of the rules

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Conditional Formatting to turn cell different colors

    Worked like a charm! Thank you

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Conditional Formatting to turn cell different colors

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and thanks for the rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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