+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting cells to specific colors

  1. #1
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    291

    Conditional Formatting cells to specific colors

    Hello all,

    Trying to set format for following conditions

    If any blank cell in range F4:F153, then cell remains blank.
    If any cell containing data in range F4:F153 < D4:D153 then Red (RGB 255:0:0) – white Font
    If any cell containing data in range F4:F153 > D4:D134 then Green(RGB 0:255:0) – Black Font

    I keep getting all Red cells. - See attached WBook.

  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
    52,933

    Re: Conditional Formatting cells to specific colors

    So you are testing F4 against D 4, F5 against D 5 etc?

    If so, then just test for =F4 < D4
    etc

    Then test for =F4 > D4

    Now, what about if the values are =?
    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
    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
    52,933

    Re: Conditional Formatting cells to specific colors

    I had the opportunity to open your file and look at your date.

    1. you say F18 should be green, but F4 < D4?

    For green...
    =AND(F4<>"",F4>D4)

    For red
    =AND(F4<>"",F4<D4)

    Again, what if they are =?

+ 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. Replies: 0
    Last Post: 06-15-2017, 06:28 PM
  2. Conditional Formatting Formula By Using Colors In the Cells
    By shameen294433 in forum Excel General
    Replies: 11
    Last Post: 02-09-2017, 10:21 AM
  3. Replies: 2
    Last Post: 12-05-2016, 10:59 AM
  4. [SOLVED] Fill colors of cells using Conditional formatting based on 3 criteria
    By Sai Prashanth in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-22-2014, 12:39 PM
  5. Replies: 1
    Last Post: 08-16-2012, 10:51 AM
  6. Replies: 3
    Last Post: 08-08-2008, 06:12 AM
  7. Replies: 9
    Last Post: 03-24-2008, 03:04 PM

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