+ Reply to Thread
Results 1 to 6 of 6

IF & AND & OR Statement

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2016
    Posts
    52

    IF & AND & OR Statement

    Hi,

    Trying to use a IF AND OR statement to check if an action was completed on time. See attached sheet.

    There is a due date, actual date completed (which could be blank, due to action not complete), basically i have 3 statements that im trying to combine
    Result here in C2 should = NO, as no close date entered in cell B2, therefore, A2<=D1 (D1 =today())
    Result here in C3 should = NO, as close date entered in cell B3 >A3
    Result here in C4 should = YES, as close date entered in cell B4 <=A4

    Happy Friday all
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF & AND & OR Statement

    =IF(OR(B2="",B2-A2>=0),"No","yes")

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: IF & AND & OR Statement

    Working perfect. Thanking you

  4. #4
    Registered User
    Join Date
    06-26-2012
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: IF & AND & OR Statement

    Sorry, just one issue, where A2 date is greater than todays date and M2 is empty, the result of the above formula is NO but should be YES

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF & AND & OR Statement

    M2? do you mean b2?

    =IF(OR(AND(B5="",A5<$D$1),AND(B5>0,B5-A5>=0)),"No","yes")

  6. #6
    Registered User
    Join Date
    06-26-2012
    Location
    Limerick, Ireland
    MS-Off Ver
    Excel 2016
    Posts
    52

    Re: IF & AND & OR Statement

    Thanks you make it look so easy

    Thread closed

+ 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: 2
    Last Post: 07-09-2015, 04:25 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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