+ Reply to Thread
Results 1 to 5 of 5

Lookup for the succeeding dates after the earliest date

Hybrid View

fbgail Lookup for the succeeding... 12-08-2013, 08:48 AM
amit.wilson Re: Lookup for the succeeding... 12-08-2013, 08:56 AM
XOR LX Re: Lookup for the succeeding... 12-08-2013, 09:02 AM
fbgail Re: Lookup for the succeeding... 12-08-2013, 09:31 AM
JillIser Re: Lookup for the succeeding... 03-13-2015, 09:36 AM
  1. #1
    Registered User
    Join Date
    06-23-2013
    Location
    dubai
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lookup for the succeeding dates after the earliest date

    Hi everyone,

    On the attached sample file, I used this array formula to lookup fo the "First purchase date" - {=MIN(IF((Sheet2!A:A=Sheet1!A2),Sheet2!B:B))}

    However, for the "Second purchase" and "Third purchase", i'm stuck and can't think on how to return the dates.

    Can anyone help me on this?

    Thank you in advance!
    Attached Files Attached Files

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: Lookup for the succeeding dates after the earliest date

    Hello F,

    welcome to the forum. Try this for "Second":
    Formula: copy to clipboard
    {=IFERROR(SMALL(IF(A2=Sheet2!A:A,Sheet2!B:B,""),2),"")}


    And this for "Third":
    Formula: copy to clipboard
    {=IFERROR(SMALL(IF(A2=Sheet2!A:A,Sheet2!B:B,""),3),"")}


    Let me know if it works.

    Cheers
    <-- If you're happy & you know it...click the star.:-)

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Lookup for the succeeding dates after the earliest date

    Hi,

    Consider this alternative array formula in B2 and copy across and down:

    =IF(COLUMNS($A:A)>COUNTIF(Sheet2!$A$2:$A$16,Sheet1!$A2),"",SMALL(IF((Sheet2!$A$2:$A$16=Sheet1!$A2),Sheet2!$B$2:$B$16),COLUMNS($A:A)))

    I also strongly recommend you do not use entire columns for your range references within array formulas.

    Regards
    Click * below if this answer helped

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

  4. #4
    Registered User
    Join Date
    06-23-2013
    Location
    dubai
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Re: Lookup for the succeeding dates after the earliest date

    Wow, those were quick and awesome solutions!

    Big help, really appreciate. Thanks a lot!

  5. #5
    Registered User
    Join Date
    03-13-2015
    Location
    Columbia, SC
    MS-Off Ver
    2007
    Posts
    1

    Re: Lookup for the succeeding dates after the earliest date

    Hm. I'm finding that these formulas each return the same date for everything in the column... but that's not the goal, right?

+ 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. Getting rid of duplicates with the earliest dates
    By sabbur in forum Excel General
    Replies: 1
    Last Post: 05-09-2012, 12:27 AM
  2. LookUp based earliest date (2007)
    By D_N_L in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2012, 08:19 AM
  3. Pick the earliest date from a selection of dates...
    By -emma- in forum Excel General
    Replies: 9
    Last Post: 01-24-2007, 08:16 PM
  4. How do I find the earliest dates in a range of dates?
    By JJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2006, 04:45 AM
  5. [SOLVED] Find the earliest date in a range of dates?
    By Rachel Williams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2006, 11:55 AM

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