+ Reply to Thread
Results 1 to 5 of 5

if statement with and condition

  1. #1
    Registered User
    Join Date
    01-24-2015
    Location
    Canberra
    MS-Off Ver
    2013
    Posts
    3

    if statement with and condition

    Dear experts

    I would like to have your help regarding the below formula.

    I have three dates example

    1st date - 21/01/2014 (column A1)
    2nd date - 21/01/2014 (column B1)
    3rd date - 21/01/2014 (column C1)

    I am trying to write an if statement - if 1st date is equal to 2nd date and both of them are either equal or less than 3rd date, give me answer "Due", otherwise "NA".

    I have written the below formula but not working.
    =IF(AND(A1=B1)<=C1,"Due","NA")

    Please help.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,135

    Re: if statement with and condition

    Try this out

    =if(and(A1<=c1,B1<=c1),"Due","NA")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: if statement with and condition

    Try:

    =IF(AND(A1=B1,A1<=C1),"Due","NA")
    Quang PT

  4. #4
    Registered User
    Join Date
    01-24-2015
    Location
    Canberra
    MS-Off Ver
    2013
    Posts
    3

    Re: if statement with and condition

    Thanks bebo021999, your formula works perfectly. Thanks Glenn as well for helping.

  5. #5
    Registered User
    Join Date
    01-24-2015
    Location
    Canberra
    MS-Off Ver
    2013
    Posts
    3

    Solved: if statement with and condition

    thanks everyone, it is now solved

+ 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] 23 condition IF statement possible?
    By fayjohn123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-23-2013, 04:43 PM
  2. if statement with condition
    By jw01 in forum Excel General
    Replies: 3
    Last Post: 11-27-2010, 01:08 AM
  3. condition:IF statement
    By MAHMUZ in forum Excel General
    Replies: 4
    Last Post: 10-08-2010, 02:46 PM
  4. IF statement more than one condition
    By Gambinus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2007, 01:43 PM
  5. Condition:If Statement
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2006, 04:00 AM

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