+ Reply to Thread
Results 1 to 8 of 8

Pulling in a subset of a larger data set

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    17

    Pulling in a subset of a larger data set

    In Sheet1, I have a list of box numbers in Column A and a list of serial numbers in Column B:

    1 100001
    1 100002
    1 100003
    2 100004
    2 100005
    3 100006
    3 100007
    3 100008
    etc...

    In Sheet2 I want to input a list of box numbers in Column A:

    1
    2
    3
    etc...

    I need an output of all the serial numbers from boxes listed in Sheet2 Column A into Sheet3 Column A. For example, inputting the following in Sheet2 Column A:

    1
    3

    would produce the following in Sheet3 Column A

    100001
    100002
    100003
    100006
    100007
    100008


    Thanks for your time!
    Last edited by JBeaucaire; 03-19-2013 at 12:04 AM. Reason: Don't guess at the answer in your title. Changed the title to your actual topic, as per the Forum Rules.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pulling in a subset of a larger data set

    Hi matchooo,

    Welcome to the forum

    Please show it in excel file with expected output for better understanding


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Pulling in a subset of a larger data set

    formula challenge.xlsx

    Note: the colored text is only to reference the transferred data. Also, the empty rows on sheet 3 should not be there.
    Last edited by matchooo; 03-19-2013 at 01:01 AM.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Pulling in a subset of a larger data set

    Pl see the attached file with array formula.Results are displayed in rows insted of columns.It may help .
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 03-19-2013 at 01:43 AM.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pulling in a subset of a larger data set

    Add this code in Standard Module and Run it.

    Please Login or Register  to view this content.
    Check the attached file for details, In Sheet3 Click the Command Button
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Pulling in a subset of a larger data set

    Thank you sixthsense! This is awesome!

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Pulling in a subset of a larger data set

    Glad it helps you and thanks for the feedback

  8. #8
    Registered User
    Join Date
    03-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Pulling in a subset of a larger data set


+ 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