+ Reply to Thread
Results 1 to 7 of 7

extract multiple rows of data if they have one of the values in a list

  1. #1
    Registered User
    Join Date
    09-23-2024
    Location
    Galway, Ireland
    MS-Off Ver
    365 v. 2408
    Posts
    12

    extract multiple rows of data if they have one of the values in a list

    my data set contains 16598 individuals, one per row. each of these individuals are members of a gym of which there are 1241 gyms, each gym gets an ID label which is a number . i want to extract all the individuals belonging to some of the gyms only. i have a list of the gym ID labels (eg 1011, 1043 etc), in total there are 1214 gyms and i want to pull all the data on the individual members of 1019 of those gyms . how do i filter the 16598 by a list of 1019 identifiers? any help appreciated
    thank in advance
    Last edited by sinneadhiggins; 12-17-2024 at 09:29 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: extract multiple rows of data if they have one of the values in a list

    A mixture of FILTER and COUNTIF.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-23-2024
    Location
    Galway, Ireland
    MS-Off Ver
    365 v. 2408
    Posts
    12

    Re: extract multiple rows of data if they have one of the values in a list

    https://www.excelforum.com/attachmen...1&d=1734443443
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: extract multiple rows of data if they have one of the values in a list

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-23-2024
    Location
    Galway, Ireland
    MS-Off Ver
    365 v. 2408
    Posts
    12

    Re: extract multiple rows of data if they have one of the values in a list

    hi again
    thank you for your interest and help, it is much appreciated!
    I don't quite understand how i can use the formula to select the 1019 gyms that i want member information on... so i have a list of gyms (eg 1066, 390, 3456, 2424) and i want to pull out all the rows that the individual is a member of one of those gyms (so for my dummy data set the solution would be rows 2 3 8 10 14 15)
    thanks again

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: extract multiple rows of data if they have one of the values in a list

    Put the formula in cell G2. List the gyms you are interested in in cells M2:M1020.

    Your data lists gym, location, age, gender and marital status.

    Not sure what you are looking for if it's not what has been offered.

    Please upload a sample file with expected results based on the test data provided.
    Last edited by TMS; 12-21-2024 at 05:25 AM.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: extract multiple rows of data if they have one of the values in a list

    Is this resolved now. If it is not, please come back with more information and a sample file that is more reflective of the live file (but not necessarily the live file).

    Please explain what it is you need clarification on.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon (Next to Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. extract rows of src sheet where col value is specified in a list of col ordered values
    By kimhouseofthor in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-16-2022, 07:45 AM
  2. [SOLVED] How to extract a unique list of values from across multiple sheets in a workbook.
    By mightybracket123 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-27-2021, 03:03 AM
  3. [SOLVED] Find a list of values within a table, locate & extract matching rows
    By EverythingAllAtOnce in forum Excel General
    Replies: 9
    Last Post: 07-15-2020, 03:56 AM
  4. extract data from multiple columns and rows to make a single list - REVISION
    By pvwebster in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2020, 05:04 AM
  5. [SOLVED] extract data from multiple columns and rows to make a single list
    By pvwebster in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-11-2020, 07:48 AM
  6. [SOLVED] extract only certain values from a list which contains empty rows
    By Teaorchid in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-19-2013, 06:13 PM
  7. Extract multiple date and time values to multiple rows
    By WilliamV in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-04-2012, 08:02 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