+ Reply to Thread
Results 1 to 7 of 7

Find a date less or greater than a particular date from a range of cells

  1. #1
    Registered User
    Join Date
    08-22-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2007
    Posts
    4

    Find a date less or greater than a particular date from a range of cells

    Hi Everyone,

    Can anyone help me find a way to search and display a date from a range of cells based on less than or greater than criteria. For example I have following dates in column A:

    A1: 2011/01/04
    A2: 2011/02/01
    A3: 2011/03/01
    A4: 2011/04/01

    I want to search for the date which is less than 2011/02/01 from the A column and display that date in B1 cell for example. How do I do that?

    Thanks!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find a date less or greater than a particular date from a range of cells

    Hi laser2302.

    A1: 2011/01/04
    A2: 2011/02/01
    A3: 2011/03/01
    A4: 2011/04/01
    The simplest way to do this, is:

    In d1(per example) put the date 2011/02/01

    Now in B1, put the formula:

    =A1:A4<D1

    Drag down to A4

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-22-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find a date less or greater than a particular date from a range of cells

    Quote Originally Posted by Fotis1991 View Post
    Hi laser2302.



    The simplest way to do this, is:

    In d1(per example) put the date 2011/02/01

    Now in B1, put the formula:

    =A1:A4<D1

    Drag down to A4

    Hope to helps you.
    I tried that even before posting this thread, but it always gives me an error message "#VALUE"

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find a date less or greater than a particular date from a range of cells

    You do something wrong!

    Take a look to the attachement.

    Hope to helps you
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-22-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find a date less or greater than a particular date from a range of cells

    I think maybe my question is not clear enough. What I want is if I enter a date, excel should return me the date which is less than the entered date and yet closest to it. For example if I enter 2011/02/01 than excel should return 2011/01/04, if I enter 2011/04/01 then it should return 2011/03/01 and so on.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find a date less or greater than a particular date from a range of cells

    Hi again..

    First post
    Can anyone help me find a way to search and display a date from a range of cells based on less than or greater than criteria
    Last post.
    I think maybe my question is not clear enough.
    Yes it was not so clear..

    Use this formula please.

    =SMALL(A1:A4;COUNTIF(A1:A4;"<"&D1))

    Is it OK now??
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-22-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Find a date less or greater than a particular date from a range of cells

    Yes, it works, thanks a lot Fotis!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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