+ Reply to Thread
Results 1 to 2 of 2

Conditional formatting: various conditions using two date columns incl when cell = blank

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Dorset, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Conditional formatting: various conditions using two date columns incl when cell = blank

    Hi,

    I have searched for problems like mine and found some useful tips, but nothing which quite gives me what I need. I hope someone can help and enjoy the challenge set here...

    I have 2 columns referencing dates and I want the text in each to change colour according to a number of varying cases:

    Column L is the Planned order date
    Column M is the Date ordered


    Here are the conditions: I am only having problems with no 1)

    1) Planned Order date (Column L) to show orange text when the date in it IS today AND the date ordered (Column M) is blank (i.e. highlight items that need to be ordered today)

    2) Planned Order date (Column L) to show red text when the date in it is BEFORE today AND the date ordered (Column M) is blank (i.e. highlight items that are now overdue to be ordered)

    3) Date ordered (Column M) to be red text when the date in it is AFTER the planned order date (Column L). (Item has been ordered, but was ordered later than planned)

    4) Date ordered (Column M) to be green text when the date in it is BEFORE the planned order date (Column L). (Item has been ordered, and was ordered earlier than planned)


    I am familiar with setting conditional formatting and have been trying a variety of formulae, but it is not quite behaving as I expect. I'm wondering if the order of the rules matters ?

    I'm also not sure when to use absolute references ($), as this conditional formatting is needed in repeated cluster of cells (e.g. L83:L93 & M83:M93, then again at L125:L135 & M125:135 and so on down to L12739:L12749 & M12739:M12749). This is because the spreadsheet is set out as a kind of form with specific cells relating to specific things within a project.


    So far I have:

    For Case 1) above
    =AND(L83=TODAY(), M83="") - turn text in L orange

    For Case 2) above
    =AND(L83<TODAY(), M83="") - turn text in L red


    The result is that Case 2) works properly and the text in Column L goes red if the date entered there is before today and Column M cell is blank, but Case 1 where the date in Column L is today's date and the corresponding cell in Column M is blank, the text in column L stays black and doesn't go orange. This is the result whichever order I put the CF rules in.

    I can confirm that the date I have put in is the same as showing on my computer and that the CF rule is active on the cells I am testing.


    Cases 3) & 4) seems to be working OK:

    Case 3)
    =M9155>L9155 - turns text in M red


    Case 4)
    =M9155<L9155 - turns text in M green



    Your help would be appreciated.

    Many thanks,

    Fiona

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional formatting: various conditions using two date columns incl when cell = bla

    Can you upload a spreadsheet in which you have set up the conditional formatting for Case 1. All it needs to have in it is the date in L and blank in M and not working (Go Advanced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. How to automatically put quotes around contents of every cell, incl. blank cells?
    By willcoq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2014, 03:15 PM
  2. [SOLVED] Conditional Formatting: If Date in cell A1 is greater than 7 days old, flag B1 If blank
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-20-2013, 11:09 AM
  3. Replies: 4
    Last Post: 02-13-2013, 01:18 PM
  4. Replies: 11
    Last Post: 10-26-2012, 09:45 PM
  5. Replies: 4
    Last Post: 03-16-2011, 07:35 PM

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