+ Reply to Thread
Results 1 to 7 of 7

Need to compare dates

  1. #1
    Registered User
    Join Date
    02-12-2010
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    42

    Need to compare dates

    In Cell J2 through J99 I have the date a payment is due. I want it to set Cell M2 through M99 to Yes if the date a payment is due is within 10 days of today's date UNLESS the date in J1 through J99 is after the date in I2 through I99 how can I do this?

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need to compare dates

    ..wrong interpret...sorry

    should be "or"...
    =IF(or(J2<=(TODAY())-10,J2>I2),"yes","no")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need to compare dates

    Maybe...

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    02-12-2010
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Need to compare dates

    vlady I tried your code by putting it in N2 then copying down and it's not working for me. I think I may not have explained fully my goal

    If the Date in Column J is within 10 days of today I want to to show Yes a payment is due in Column N so I have enough time for my payment to arrive unless I already paid it after the statement closed. The statement closing date is in Column I and the last payment date is in column M.
    Attached Files Attached Files

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need to compare dates

    =IF(J2>I2,"No",IF(J2>=(TODAY())-10,"yes","no"))

  6. #6
    Registered User
    Join Date
    02-12-2010
    Location
    Toms River, NJ
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Need to compare dates

    Quote Originally Posted by vlady View Post
    =IF(J2>I2,"No",IF(J2>=(TODAY())-10,"yes","no"))
    It's still not setting it to yes when I want it. I tried with fake dates before and after the Statement close date. New version attached.

    One follow up. How do I not make it show anything if there is no account name in the A column so I don't have a bunch of no's with no corresponding account
    Attached Files Attached Files

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Need to compare dates

    =IF(A2="","",IF((J2-TODAY())<=10,"yes","no")) this will give query number 1

    just can't get this one...
    UNLESS the date in J1 through J99 is after the date in I2 through I99 how can I do this?
    all date in J is after I-- so "No"????

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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