+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting

  1. #1
    Registered User
    Join Date
    01-11-2018
    Location
    Wales
    MS-Off Ver
    2016
    Posts
    1

    Conditional formatting

    Evening everyone.

    I am after some help please. In cell A1 I have a date by which a report is due. In cell B1, I want to enter the date when the report has been completed.

    I want the cell in A1 to be formatted to be green if B1 date is prior to A1, red if after A1 and orange if coming up to the date I.e. due in 30 days.

    This all seems relatively easy. However the problem I am having is that cell A1 is green even when B1 is yet to have the completion date entered. Until there is a date in B1, I would like A1 to have no formatting, but retain its date.

    Also, I want the green formatting to override the orange if/when that date in B1 has been entered.

    These seem like reasonably easy things to do in excel, however I just can’t seem to do it!

    Any help here would be great. Thank you

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,502

    Re: Conditional formatting

    I would do it this way...
    go to conditional formatting >> new rule >> formulas only cells that contain >> format only cells with: cell value less than =B1 and select the format fill as yellow, then ok and ok.
    Then open CF again and do new rule >> formulas only cells that contain >> format only cells with: cell value greater than or equal to =B1 and select the format fill as green, then ok and ok.

    EDIT: where did I get yellow? need more caffeine, you can adjust mine as needed or just go with Marcilio's solution, it looks right, difference is he is using formulas, just make sure you keep the rules in the correct order to get the right results.
    Last edited by Sam Capricci; 01-12-2018 at 02:25 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Conditional formatting

    jared14h, Good afternoon.

    Try to do:

    Select Range A1
    Menu Conditional Format; Using formula

    Rule 1
    Type =AND(B1<>"",B1<A1)
    Choose Fill color as GREEN
    OK

    Rule 2
    Type =AND(B1="",(A1-TODAY())<=30)
    Choose Fill color as ORANGE
    OK

    Rule 3
    Type =AND(B1<>"",B1>A1)
    Choose Fill color as RED
    OK

    Please, tell us if it worked as desired.
    I hope it helps.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

+ 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. [SOLVED] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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