+ Reply to Thread
Results 1 to 5 of 5

Find IF date between, TRUE

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    Idaho
    MS-Off Ver
    Excel 2003
    Posts
    7

    Find IF date between, TRUE

    Hi, I'm trying to write a formula that references a that contains a date, determines whether or not that date falls between two dates, and returns a value if TRUE. I'm planning on nesting this statement for 3 ranges of dates. but here is the first one. I haven't been able to get it to work yet.

    =IF(M8(AND(Date>6/30/2015,Date<7/1/2016),"FY16"))

    This was the first version I tried that also didn't work, but shows the nesting and date ranges required:

    =IF(M8>"Jun-15"<"Jul-16","FY16",IF(M8>"Jun-16"<"Jul-17","FY17",IF(M8>"Jun-17"<"Jul-18","FY18")

    Anyone have any ideas? Thanks!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Find IF date between, TRUE

    Normally to see if something is between using the and()

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Find IF date between, TRUE

    with date being tested in B1, the earlier date in B2, the later date in B3
    =AND(B1>=B2,B1<=B3)
    returns a TRUE or FALSE in cell B1 for dates within the range B2 to B3
    Last edited by kev_; 10-12-2017 at 11:23 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Find IF date between, TRUE

    .. or hard coded into the formula:

    =IF(AND(D2>DATE(2015,6,30),D2< DATE(2016,7,1)),"FY16","")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Find IF date between, TRUE

    post duplicated somehow??
    deleted by kev

+ 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. find out the maximum date from all true values
    By jsalotra in forum Excel General
    Replies: 4
    Last Post: 05-23-2017, 12:22 PM
  2. Replies: 9
    Last Post: 10-08-2015, 01:50 PM
  3. [SOLVED] If find = true then.... else.... end if
    By drrazor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2014, 12:32 PM
  4. [SOLVED] Formula to return a True/False if date equals yesterday's date
    By abbeycrombie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-17-2013, 11:31 AM
  5. If find is true then.....
    By jpizzle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2005, 12:05 PM
  6. [SOLVED] VB find (true false)
    By Wildman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-06-2005, 07:06 AM
  7. Date help, if selected date is saturday then expression returns true
    By justchris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2005, 06:26 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