+ Reply to Thread
Results 1 to 5 of 5

Problem with IF function comparing two dates using greater than or equal to

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Minneapolis, MN
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Problem with IF function comparing two dates using greater than or equal to

    Hello,

    I am using Excel 2010. My formula is comparing to dates to determine if one is greater than or equal to the other, "Yes" or "No". Excel returns "No" when the dates are equal with my formula as written here: =IF(ISBLANK(O5),"",IF(O5>=K5,"Yes","No"))

    If equal to, it should be returning a "Yes" value, no?

    Thank you

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Problem with IF function comparing two dates using greater than or equal to

    In a cell, any cell, enter =(O5=K5)
    If it says FALSE then they are NOT equal.
    What does it say?

    What are the values in the date fields?
    If you're still stick post the file on here and someone will spot why they are different.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Problem with IF function comparing two dates using greater than or equal to

    I've tested your formula and it works fine, can you supply a sample sheet to show the issue?

    Thanks
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Problem with IF function comparing two dates using greater than or equal to

    Do either of the dates (or both) also include the TIME Value ?

    Try
    =IF(ISBLANK(O5),"",IF(INT(O5)>=INT(K5),"Yes","No"))

  5. #5
    Registered User
    Join Date
    07-18-2014
    Location
    Minneapolis, MN
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Re: Problem with IF function comparing two dates using greater than or equal to

    Value returned was FALSE! There was a problem with transposition of number the date year. Ugh! Thank you for the quick reply and the quick test! I will use that again.
    Last edited by carmiand; 07-18-2014 at 11:20 AM.

  6. #6
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Problem with IF function comparing two dates using greater than or equal to

    Quote Originally Posted by carmiand View Post
    Value returned is TRUE.
    In that case your formula should work, can you post a sample please

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Problem with IF function comparing two dates using greater than or equal to

    Or this

    =IF(OR(K5="",O5=""),"",IF(O5>=K5,"Yes","No"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  2. Replies: 1
    Last Post: 10-08-2012, 05:58 AM
  3. IF greater than or equal to problem
    By LucidlyKataklysmic in forum Excel General
    Replies: 3
    Last Post: 07-11-2011, 09:25 AM
  4. GREATER OR EQUAL TO BUT LESS THAN Problem using Sumproduct
    By Iain Halder in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2005, 01:05 AM
  5. [SOLVED] Comparing Dates using Greater Than and Less than
    By waipio2 in forum Excel General
    Replies: 1
    Last Post: 06-08-2005, 11:05 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