+ Reply to Thread
Results 1 to 6 of 6

Different Date Durations Driving Yes/No

  1. #1
    Registered User
    Join Date
    05-05-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    27

    Different Date Durations Driving Yes/No

    Hi Brainiacs!

    I need your help please, I hope i explain this ok..

    Rule One:
    If Column C is 56 days or under I need Column E to say No
    If column D is over 56 days, I need Column E to say No

    Rule Two:
    If Column C is over 56 days, I need Column E to say Yes
    If Column D is over 56 days, I need Column E to say Yes

    Rule Three:
    If Column C is blank, I need Column E to say No.
    If Column D is under 56 days or under I need Column E to say No.
    BUT, if Column D is over 56 days, I need Column E to say Yes

    I have highlighted two rows
    4 is with the formula I have tried to use and failed.
    14 is copying row 4, but the results I am going for is there

    I hope this all makes sense.

    Thank in advance for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Different Date Durations Driving Yes/No

    may i just clarify the rules
    If Column C is 56 days or under I need Column E to say No
    If column D is over 56 days, I need Column E to say No
    is this an AND
    column C is under 56days AND column D is over 56 days - then NO
    is that the RULE 1

    Are the other rules ALSO AND - all must apply ?


    If Column C is blank, I need Column E to say No.
    If Column C is 56 days or under I need Column E to say No
    If Column D is under 56 days or under I need Column E to say No.
    If column D is over 56 days, I need Column E to say No

    i have grouped the NO's
    SO it would not appear to matter what D is

    =IF( OR( C2 ="", C2 < 56 ) , "No",
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    05-05-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    27

    Re: Different Date Durations Driving Yes/No

    Thanks etaf,

    I forgot to mention that G1, has the =Today() function, so that if B is blank and D goes above 56 days, I need E to show a yes.

    Thank you

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Different Date Durations Driving Yes/No

    ok,
    what about the questions in my post
    Rule One:
    If Column C is 56 days or under I need Column E to say No
    If column D is over 56 days, I need Column E to say No

    Rule Two:
    If Column C is over 56 days, I need Column E to say Yes
    If Column D is over 56 days, I need Column E to say Yes

    Rule Three:
    If Column C is blank, I need Column E to say No.
    If Column D is under 56 days or under I need Column E to say No.
    BUT, if Column D is over 56 days, I need Column E to say Yes
    that if B is blank and D goes above 56 days, I need E to show a yes.
    I still dont know if these are AND all must apply for each rule

    Rule One:
    If Column C is 56 days or under I need Column E to say No
    AND
    If column D is over 56 days, I need Column E to say No

    Rule Two:
    If Column C is over 56 days, I need Column E to say Yes
    AND
    If Column D is over 56 days, I need Column E to say Yes

    Rule Three:
    If Column C is blank, I need Column E to say No.
    AND
    If Column D is under 56 days or under I need Column E to say No.
    OR
    BUT, if Column D is over 56 days, I need Column E to say Yes

    AND
    that if B is blank and D goes above 56 days, I need E to show a yes.

    i think we need to put the full conditions/rules for YES all together
    AND the same for a NO

  5. #5
    Registered User
    Join Date
    05-05-2014
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    27

    Re: Different Date Durations Driving Yes/No

    Apologies, yes, I need all the rules to apply if possible.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,734

    Re: Different Date Durations Driving Yes/No

    yes, I need all the rules to apply if possible.
    I understand , BUT what are the rules exactly

    really sorry , i am trying to help out here
    I have put the rules in for a YES and a NO


    I'm not sure I follow all the rules as it could be
    If Column C is 56 days or under I need Column E to say No

    So not looking at column D
    OR
    is it
    If Column C is 56 days or under AND at the same time column D is over 56 days and only if BOTH apply then its NO in column E

    in which case that is
    =AND( C2 < = 56 , D2 > 56 )
    then in an IF
    =IF( AND( C2 < = 56 , D2 > 56 ) , "NO"

    BUT we also have
    If Column C is blank, I need Column E to say No.
    AND
    If Column D is under 56 days or under I need Column E to say No.

    SO then an OR

    =IF( OR( AND( C2 < = 56 , D2 > 56 ) , AND( C2="", D2 < 56 ) ), "NO"

    Then for the YES
    Rule Two:
    OR( AND ( C2 > 56 days, D2 > 56 ) , AND( C2="", D2 > 56 ) ) , "YES"


    So we have
    =IF( OR(AND(C2<=56,D2 > 56),AND( C2="", D2<56 )), "NO", IF(OR(AND(C2 >56, D2>56 ), AND(C2="", D2>56 )), "YES","No Rule"))

    BUT , i'm not 100 sure i follow the rules as mentioned in previous posts

    also we dont have an = 56 days in all the conditions

    so here it is in column G

    can you put the results expected in a column, as you have NO No's and just blank cells
    Attached Files Attached Files

+ 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. Breaking Up Date Durations
    By mycon73 in forum Excel General
    Replies: 2
    Last Post: 05-02-2017, 04:33 PM
  2. How to sum daily durations from date ranges
    By MechEngSk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-19-2013, 02:11 AM
  3. Month to Date Calculation - Driving Me Crazy!
    By Peeekay in forum Excel General
    Replies: 7
    Last Post: 03-30-2012, 03:26 PM
  4. Conditional Format on date driving me mad
    By Badvgood in forum Excel General
    Replies: 1
    Last Post: 09-30-2011, 11:19 AM
  5. Date Format Driving Me Crazy
    By Peeekay in forum Excel General
    Replies: 5
    Last Post: 06-09-2011, 10:11 AM
  6. Date Comparison Driving Me Crazy
    By DTODDP in forum Excel General
    Replies: 9
    Last Post: 01-28-2005, 08:06 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