+ Reply to Thread
Results 1 to 4 of 4

Search and Pull Data

  1. #1
    Registered User
    Join Date
    09-18-2020
    Location
    Alberta, Canada
    MS-Off Ver
    365
    Posts
    1

    Search and Pull Data

    Hello,

    Normally I can figure things out in Excel pretty well but this one has me right stumped. Not even sure if Excel can do it but it would be great if it could. I have three sheets in one Workbook 2 are data imported from a tracking program I use externally. Now my question is Can I have the first Workbook search for names in the other two and if it finds that name pull the data to a corresponding cell in the first book. I have attached an example this is a small sample size as the true one has a little over 500 lines to it.

    I know I can do this manually but that is very administratively heavy and I am trying to reduce that, any help even the bad news that it cant be done would be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Search and Pull Data

    First you need some common key between the worksheets. Is the team small enough that "Last name" would suffice? Or a combination of first and last name?

    I have assumed a combination of first and last name. If just last name would suffice then the following formula would simplify considerably:
    In F2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is an array formula and needs to be committed via CTRL-SHIFT-Enter.
    Copy F2 down as far as needed.

    There is a blank value in cell F5. This can be removed either by cell formatting or a modification to the formula.

    The formulas in col-H for Test3 would be similar.

    Hope this helps, let us know.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Search and Pull Data

    Using Get and Transform (Power Query) found on the Data Tab.
    1. Bring each table into the PQ Editor. Close and Load to a Connection only.
    2. Merge the Test 1 with Test 2 table on the name Left inner join
    3. Merge the new merged table with Test 3. Expand the results
    4. Close and Load to Excel

    Results:
    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Last Name First Name Test 1 Required Last Test 1 Test 1 Due Test 2 Due Test 3 Due Test2.Last Test Date Test3.Last Test Date
    2
    Wiggins Chief Y
    12/14/2018
    12/14/2020
    12/31/1901
    12/31/1901
    2/20/2019
    2/20/2019
    3
    Simpson Homer Y
    9/26/2018
    9/26/2020
    12/31/1901
    12/31/1901
    2/20/2019
    2/20/2019
    4
    Smith Burke Y
    10/12/2018
    10/12/2020
    12/31/1901
    12/31/1901
    1/12/2020
    1/12/2020
    5
    Kingsley Pearl Y
    11/19/2018
    11/19/2020
    12/31/1901
    12/31/1901
    6
    Fecondiak Paul Y
    9/5/2019
    9/5/2020
    12/31/1901
    12/31/1901
    1/5/2018
    1/5/2018
    7
    Kerny John Y
    8/22/2019
    8/22/2020
    12/31/1901
    12/31/1901
    5/8/2018
    5/8/2018
    8
    Grande Prairie N
    12/31/1901
    12/31/1901
    6/4/2018
    6/4/2018
    9
    Deer Red N
    12/31/1901
    12/31/1901
    7/19/2019
    7/19/2019
    Sheet: Sheet2

    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced


    File is attached for your review
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Search and Pull Data

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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] Search different tabs to pull data across?
    By LMills77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2020, 01:53 PM
  2. Google Search VBA and Pull Data
    By senker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2017, 01:50 AM
  3. [SOLVED] Search one tab in a sheet to pull data into another tab...
    By Halfcent in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2016, 11:40 AM
  4. Search worksheet in another workbook and pull matching Data
    By erjp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2015, 05:06 AM
  5. Using VBA to pull data from a youtube search (HTML)
    By aradicalpenguin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2015, 10:09 PM
  6. How to search for data on one sheet and pull it over to another.
    By samdegg in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-22-2013, 03:27 PM
  7. Pull data from another worksheet based on multilpe search criteria
    By spectrum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-30-2005, 02:27 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