+ Reply to Thread
Results 1 to 3 of 3

Date less than or equal to is only picking up less than date

  1. #1
    Registered User
    Join Date
    04-02-2012
    Location
    Amersham, England
    MS-Off Ver
    Excel 2007/10
    Posts
    7

    Date less than or equal to is only picking up less than date

    Hi guys,

    I've got a formula

    =IF(AND(A15187>='Welcome Page'!$D$13,A15187<='Welcome Page'!$D$15),"Yes","No")

    which looks at two dates (D13 and D15) on the welcome page worksheet and compares it to a date in a list and if the date is in that list range.

    However, the upper limit does not display a Yes even if it is within range. However if I extend the range to beyond that date, it picks it up. Basically, the 'equal to' function is not working, its only recognising dates less than.

    E.G.

    If I set the range 17/6/16 to 18/6/16, I will get only the 17th returned. If I extend it to the 19/6/16, I will now get values from the 18th returned. So its working on every level EXCEPT that it does not pick up values equal to the second, later date.

    Any help gratefully received.

    Thanks

    Bob

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Date less than or equal to is only picking up less than date

    Hi Bob,

    Could we see some (desensitized) sample data in workbook where this is happening? Nothing wrong with the formula and is should work. May be some underlying issue.

    BSB

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Date less than or equal to is only picking up less than date

    The formula is correct!

    Just in case: you have not mis-typed it .....

    =IF(AND(A15187>='Welcome Page'!$D$13,A15187<'Welcome Page'!$D$15),"Yes","No")

    logically it would explain your results
    Last edited by JohnTopley; 06-30-2016 at 05:45 AM.

+ 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: 0
    Last Post: 11-23-2015, 04:50 AM
  2. [SOLVED] Need FORMULA for Date subtract Date equal bussiness hour (don't count weekend)
    By tuongtu3 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-24-2015, 03:29 AM
  3. Blank cellls if date are equal on larger than todays' date
    By kuzna26 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2013, 06:50 AM
  4. [SOLVED] Copy data from one sheet to another if the date is equal or higher than a gien date
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2013, 02:57 PM
  5. Picking Closest Date from List - With Date Minimum
    By JPolvCB in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2013, 12:55 AM
  6. [SOLVED] Vlookup – Picking up first date and then picking up second date if there is one.
    By CranstonWatts in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2012, 11:32 AM
  7. Formula not picking up Date as Date, but Number
    By Gambinus in forum Excel General
    Replies: 1
    Last Post: 06-17-2010, 12:52 PM

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