+ Reply to Thread
Results 1 to 3 of 3

Finding the max date in a subgroup of a long list

  1. #1
    Registered User
    Join Date
    06-05-2007
    Posts
    2

    Finding the max date in a subgroup of a long list

    Hello, I can't figure out how to use Excel to do this. I don't really even know where to start. I'm super-awesome with SQL, but Excel has me stumped.

    here's the situation: I have a Big List of names, with dates associated with them. Many of the names are duplicated, but have different dates. I am comparing to another Small List of names and dates (no dupes). I need to determine if each name on the Small List occurs in the Big List, and if there is a row on the Big List that is dated later.

    Big List
    peter 5/1/2001
    jim 4/3/2004
    mary 5/2/2007
    john 3/1/1999
    john 5/4/2006
    nina 7/7/2000

    Small List
    adam 9/3/2004
    john 4/4/2004

    I know how to determine if john happens in the Big List, but I don't know how to dynamically select the maximum date associated with John.

    Ultimately, since there is a date in the Big List that happens after the date in the Small List for john, I would like to return true. adam, also in the Small List, would return false because he's not in the Big List at all.

    Hopefully that all makes sense. Please let me know if any clarification is needed!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =MAX(IF($A$1:$A$6=E1,$B$1:$B$6))>F1

    confirmed with CTRL+SHIFT+ENTER not just ENTER. You'll see {} brackets appear around the formula. Then copy the formula down.

    where A1:B6 houses your Big list

    and E1:F2 house your Small list.

    Adjust ranges to suit and reconfirm with the CSE key combo.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-05-2007
    Posts
    2
    slam DUNK!

    works perfectly. Thank you so much!

+ 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