+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : MIN Date value return

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy MIN Date value return

    Hi guys,

    I have two columns as per below:

    Bernard 24/01/2010
    Bernard 27/02/2010
    Peter 28/01/2009
    Peter 28/05/2009

    How can I add a third column to return the lowest value date for column a?

    My list of names runs into thousands and the dates are contract dates, I need to show each persons first date where ever their name comes up.

    Any help would be lovely.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: MIN Date value return

    If column A is sorted ascending, you can use in C1 and copied down

    =MIN(INDEX(B:B,MATCH(A1,A:A,0)):INDEX(B:B,MATCH(A1,A:A,1)))

    The same minimum date will show for every user name.

    If you sort by names first, and then by date, you can do a simple

    =VLOOKUP(A1,A:B,2,FALSE)

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: MIN Date value return

    Either way I would suggest you add a header row at which point:

    If sorted by name but not by date then:

    C2: =IF(A2=A1,C1,MIN(B2:INDEX(B:B,MATCH(A2,A:A,1))))
    copied down

    this way you only conduct the MIN calc once per name and avoid the exact match calc. altogether

    If sorted by name and date then simply:

    C2:
    =IF(A2=A1,C1,B2)
    copied down

    (thereby minimising precedents)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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