+ Reply to Thread
Results 1 to 6 of 6

Looking to extract multiple matches from a list

  1. #1
    Registered User
    Join Date
    08-14-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    3

    Looking to extract multiple matches from a list

    Hey all,

    First post here! Usually my own knowledge or google-fu can get me my answers. I love learning more about Excel, but this one has me stumped:

    I am trying to extract multiple matches from a table of data. Sample is attached.

    Table 1 has a column "Track" and a column "ZIP Code".
    Table 2 has a column "Track" and a blank column "ZIP code"

    I need to match the track and its ZIP code from Table 1 and put the zip into the blank zip code column in table 2. However, my issue is that a track can have multiple zip codes, so I need to pull all zip codes in table 1 for a given track in table 2.

    Thanks in advance!
    Attached Files Attached Files

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

    Re: Looking to extract multiple matches from a list

    Since you have Excel 2016. I'd recommend using Get & Transform (PowerQuery) to perform your operation.

    1. Load both table to PQ as connection only.

    2. Go in to editor and make sure [Zip Code] column is set to Text type.

    3. In your Table2, drop the [Zip Code] column.

    4. Merge Table1 into table2 using [TRACK] as key column.

    5. Add custom column with following (replacing [tract_zip_122016] with actual table name in your workbook).

    6. Drop the merged column and change custom column data type to Text.

    7. Load to sheet. See Sheet1 of attached for sample result.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    08-14-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    3

    Re: Looking to extract multiple matches from a list

    Wow, thank you. Never heard of it, but this looks like a powerful tool. Instructions are a bit vague. I keep trying to reverse engineer yours, but keep getting errors after the custom formula is entered.
    There a way to possibly get more detailed instructions?

    EDIT: Wait... i think I got it.
    Last edited by Castorr; 08-15-2019 at 11:48 AM. Reason: add additional detail

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

    Re: Looking to extract multiple matches from a list

    You can enter the Query Editor in sample file. You can follow each applied step in right hand pane.

    Basically, after you merge the tables using Left Outer Join. You'd use below formula construct.
    Please Login or Register  to view this content.
    Where TableName is actually the column name of the merged column. And ColumnName is the target column of the source table.

  5. #5
    Registered User
    Join Date
    08-14-2019
    Location
    NY
    MS-Off Ver
    2016
    Posts
    3

    Re: Looking to extract multiple matches from a list

    that's exactly what I was missing. Was able to figure it out.

    Thanks again.

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

    Re: Looking to extract multiple matches from a list

    You are welcome and thanks for rep

    If you are satisfied with the solution, please mark the thread as solved using thread tool found at top of your initial post.

+ 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. [SOLVED] Formula to Extract a List of Matches
    By peterschein in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 03-27-2019, 01:06 PM
  2. Extract multiple matches into separate columns
    By UBulgan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-16-2018, 11:33 PM
  3. Replies: 4
    Last Post: 05-31-2017, 09:41 AM
  4. Replies: 9
    Last Post: 12-09-2016, 10:43 AM
  5. [SOLVED] list of names with multiple matches need to list all
    By Little Guy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2015, 11:59 PM
  6. extract email address from the cell if it matches one from the list
    By mumsys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2014, 10:34 AM
  7. Replies: 2
    Last Post: 07-19-2011, 04:08 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