+ Reply to Thread
Results 1 to 3 of 3

IF Function to check if x date is before y date (not working)

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    71

    IF Function to check if x date is before y date (not working)

    In the attached, I was working on my formula in column H trying to figure out why the result would always be equal to the "Invoice Amount" in column D, so I decided to simplify it and shorten it to see if the IF function was properly comparing dates. Please see column J - I cannot figure out why it's returning "no" when checking if the date in A5 is earlier than all the corresponding dates in column E. Is my formatting messed up? Thanks in advance for the help!
    Attached Files Attached Files
    Last edited by Drexl27; 04-23-2024 at 10:12 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,621

    Re: IF Function to check if x date is before y date (not working)

    When I evaluated your formula in column J, the date in A5 was inside quote marks. Maybe you should enter it as 3/31/2024 and custom format it as MMM dd, yyyy. That corrected the results in column J for me.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    12-06-2012
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2010
    Posts
    71

    Re: IF Function to check if x date is before y date (not working)

    Yep, that was it! It was referencing a cell in another tab that was formatted 'March 31, 2024 vs 03/31/2024. Thank you!

+ 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] Using Variables to Check if a Date is Between 2 Dates Not Working
    By KrenVT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2021, 10:57 AM
  2. [SOLVED] Index and Check Date function to list names.
    By natkemon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-26-2020, 11:28 PM
  3. date function not working.....if date blank says its a valid date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2018, 09:25 AM
  4. Replies: 2
    Last Post: 04-26-2017, 08:06 AM
  5. Replies: 1
    Last Post: 05-26-2014, 03:46 AM
  6. [SOLVED] simple date function is not working/showing ( DATE+30)
    By ryan4646 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-09-2013, 01:44 PM
  7. Function: check cell value is>= date
    By itsm3json in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2013, 01:16 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