+ Reply to Thread
Results 1 to 6 of 6

Multiple if Condition with Date

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel For Mac V16 365
    Posts
    145

    Multiple if Condition with Date

    Hi all,

    Thank you in advance.


    I have attached an excel sheet (test) where the columns are mentioned.

    I have two date columns (C and D)

    if the dates entered in these columns are less than todays date...then i need to print "do not accept" else "accept" in remark column (E)

    both the dates should be checked

    is it possible???

    Please help


    regards,

    Gokul
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Multiple if Condition with Date

    Use

    =IF(AND(C5<TODAY(),D5<TODAY()),"do not accept","accept")

    or even

    =IF(AND(C5<TODAY(),D5<TODAY()),"do not ","")&"accept"
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel For Mac V16 365
    Posts
    145

    Re: Multiple if Condition with Date

    Hello Ace_XL,

    Thanks

    when i tried with one valid date and other invalid..it is still showing accept.

    for example first expiry date is 1/12/2015(mm/dd/yyyy) and second one is 1/13/2015...the remark is accept

    how can we sort this??

    Gokul

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Multiple if Condition with Date

    If the dates entered in these columns are less than todays date...then i need to print "do not accept" else "accept"
    That translates to
    If both days are less then today -- do not accept
    If one or two days is equal or more -- accept

    It seems you want it the other way around..

    =IF(AND(C5<TODAY(),D5<TODAY()),"accept","do not accept")

  5. #5
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Dubai
    MS-Off Ver
    Excel For Mac V16 365
    Posts
    145

    Re: Multiple if Condition with Date

    If both days are less then today -- do not accept
    If two days is equal or more -- accept
    If one day is lesser - do not accept

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Multiple if Condition with Date

    In that case you need

    =IF(OR(C5<TODAY(),D5<TODAY()),"do not accept","accept")

    or even

    =IF(AND(C5>=TODAY(),D5>=TODAY()),"accept","do not accept")

+ 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: 1
    Last Post: 03-25-2014, 10:49 AM
  2. Replies: 3
    Last Post: 02-02-2014, 04:26 AM
  3. Using Vlookup with multiple date range condition
    By reju in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-26-2012, 01:19 PM
  4. multiple condition test w/ date & ISBLANK()?
    By KayG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2012, 10:08 AM
  5. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 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