+ Reply to Thread
Results 1 to 5 of 5

Select a sub set from a table of records

  1. #1
    Registered User
    Join Date
    11-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    3

    Select a sub set from a table of records

    Club Person Date Joined
    Brough Susan 11/11/2011
    HIM Alexis 10/12/2011
    HIM Bill 12/07/2011
    HIM Eric 01/01/2011
    HIM Susan 13/11/2011
    Humb Bill 11/07/2011
    Other Kate 13/11/2011
    Sykes Alexis 14/11/2011
    Sykes Kate 14/11/2011
    Tech Alexis 11/09/2011
    Tech Beth 03/11/2011
    Tech Susan 10/11/2010

    I want to extract from this table the club that each person joined first: i.e.

    Club Person Date Joined
    HIM Eric 01/01/2011
    Humb Bill 11/07/2011
    Tech Alexis 11/09/2011
    Tech Beth 03/11/2011
    Tech Kate 11/08/2011
    Tech Susan 10/11/2010

    Can anyone advise please
    Last edited by Pete100mph; 12-11-2016 at 06:05 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Select a sub set from a table of records

    Hi,

    There is probably an easier way to do this, but my solution involves three array formulas. If your list is extensive the combination of all the formulas might take a while to complete.

    The first formula is for providing a unique list of names:

    Please Login or Register  to view this content.
    The second formula returns the first date associated with the name:

    Please Login or Register  to view this content.
    The third formula matches the name with the date to return the name of the club:

    Please Login or Register  to view this content.
    All of these formulas are arrays and need to be entered with CTRL + SHIFT + ENTER.

    After entering the formula in the desired cell, copy downward.

    See attached example that uses the data you provided.

    Hope this is helpful.

    Cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-12-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    3

    Re: Select a sub set from a table of records

    Firstly, thank you very much for your prompt response, it is really appreciated.

    I have not worked with array formulae before, I will copy your sensible approach of breaking the problem into three bits. I will use your answer to practice then, when I'm comfortable I will have a go at using it to solve my real problem - similar in concept to the small example I used on the forum - with over 4500 records.

    Again - Thank you very much.

    Peter

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Select a sub set from a table of records

    You are very welcome. Glad I could be of some assistance.

    Cheers

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Select a sub set from a table of records

    Alternate method using Pivot Table.

    Add helper column to original list, named it "Min Date"
    =MIN(IF($B$2:$B$13=B2,$C$2:$C$13))

    Load range to Pivot Table.

    Add calculated column in Pivot Table.
    ='Date Joined' ='Min Date'

    Add "Date Joined" and the calculated field to Values field (both as SUM in this case).

    Add "Club" as Parent Row Label and "Person" as child.

    Right click on "Person" row label and set filter by values. Sum of "Calculated Column" = 1.

    See attached sample.
    Attached Files Attached Files

+ 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. Select a sub set from a table of records
    By Pete100mph in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-15-2016, 05:47 PM
  2. Count records in table based on criteria, select and paste to a new spreadsheet
    By thisguy4000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2014, 09:43 AM
  3. Replies: 5
    Last Post: 04-05-2012, 01:29 PM
  4. Chart Pivot Table - How to Select Only 12 Records?
    By jbates99 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-31-2009, 06:26 AM
  5. Randomnly select records
    By brianmcgann in forum Excel General
    Replies: 2
    Last Post: 01-22-2008, 03:32 PM

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