+ Reply to Thread
Results 1 to 9 of 9

date and cell criteria dependent conditional formatting

  1. #1
    Registered User
    Join Date
    01-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    5

    date and cell criteria dependent conditional formatting

    Excel Problem Snip.jpg Please take a look at the attached queries. Any help very much appreciated!

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: date and cell criteria dependent conditional formatting

    So in E4, this would return true for accepted but no notification sent:
    =and(C4="Accepted",E4="")
    For F4:
    =and(F4="",TODAY()>=E4+5)
    And D4:
    =and(C4="Pending",D4>=TODAY()-7)

  3. #3
    Registered User
    Join Date
    01-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: date and cell criteria dependent conditional formatting

    Thanks for a quick response Yudlugar.
    So am I putting the above in as a formula into the cell or do I need to do this via the conditional formatting tab?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: date and cell criteria dependent conditional formatting

    That's what goes in your conditional formatting formula. (i.e. you want it to return true so it applies the conditional format when your criteria are met).

  5. #5
    Registered User
    Join Date
    01-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: date and cell criteria dependent conditional formatting

    In fact I plugged in your 3 formulas and it mentioned about circular references. Anyway I carried on and entered a date into Estimated Project date and it gave the following

    Quote Issued (Date) Status Estimated Project Start (Date) Notification Sent (Date) Notification Acknowledged (Reference/Date/Contact)
    02/01/2013 Pending 12/01/2014 0 00-Jan-00

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: date and cell criteria dependent conditional formatting

    Can you upload your workbook please and I'll add the conditional formats in.

  7. #7
    Registered User
    Join Date
    01-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: date and cell criteria dependent conditional formatting

    Hang on a few minutes. I'm entering these and things are looking promising. But just need to test a few colours/dates to see everything works good.

  8. #8
    Registered User
    Join Date
    01-08-2014
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: date and cell criteria dependent conditional formatting

    OK Yudlugar I've run some tests by playing around with some new dates as the formulas are relevant to today's date. I think the following is occurring but accept some user error on my part. I dont know much about the code but on examination it appears you are essentially separating a false/positive condition by a comma and that triggers the formatting outcome;

    For E4: Notification Sent Cell
    =and(C4="Accepted",E4="") - This seems to do as required and answers point 2 of my queries.

    For F4: Notification Acknowledged Cell
    =and(F4="",TODAY()>=E4+5) - For cell F4 I would be expecting that to fill red after the expiry of 5 days from the date of the notification sent date which it does. I tested a date of today (it had no fill) and a date of over 5 days ago (and it filled red). And when I enter text the red fill disappears which is good - not sure the formula was telling it to do that but it does so no complaints. Although when the job is still Pending status it still fills red and I would prefer if it didn't. The only time the notification acknowledged cell fills red is if it is empty and 5 days has elapsed since sending notification otherwise is should have no fill. This is Point 3 of my queries.

    And D4: Estimated Project Start Date
    =and(C4="Pending",D4>=TODAY()-7) - When status is pending and we are within 7 days of todays date the cell fills orange when we are more than 7 days the cell remains no fill and this is what I wanted. However as per previous cell F4 remains filled red when it shouldn't be? Once I switch the job to accepted the orange disappears and instead the red fill highlights the notification sent cell which is good and the red fill on the acknowledgment disappears although not sure why it is there in the first place? This is point 4 of my queries.

    Do you work freelance, as the above is a snip of my problems. I have a huge spreadsheet which I could do with some assistance on and from that I want to do mail merging to word. I will of course pay but despite my username Im not rich at all!
    thanks

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: date and cell criteria dependent conditional formatting

    Hi - yes, the =AND() function allows you to enter several conditions separated by commas. If all conditions are true, the =and() function evaluates to true, if one or more conditions is false the = and() function evaluates to false.

    So for F4, TODAY() returns todays date, so today()>=E4+5 is saying that if todays date is more than 5 days after the date in E4, to return to true, and also that the cell F4 itself is blank. You could add in an additional comment to state that it needs to be accepted like this:
    =and(C4="Accepted",F4="",TODAY()>=E4+5).

    I have sent you a PM regarding freelance work. Note - this forum has a commercial services section which you may wish to look into.

+ 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] Conditional formatting with three criteria from another cell (help!)
    By kmakjop in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-06-2013, 04:42 AM
  2. [SOLVED] Count cells with date criteria matching conditional formatting colour
    By summer2010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 04:34 AM
  3. Conditional formatting dependent on value in a different cell
    By cheal2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-24-2013, 12:59 PM
  4. [SOLVED] Conditional formatting of cell dependent of other cell date
    By logz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2013, 01:39 AM
  5. Make conditional formatting Macro dependent on cell number format
    By jbyrne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2010, 10:26 AM

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