+ Reply to Thread
Results 1 to 4 of 4

How to search to spreadsheets for a match and then pull data from matching row

Hybrid View

  1. #1
    Registered User
    Join Date
    07-20-2016
    Location
    Bromsgrove
    MS-Off Ver
    Office 365
    Posts
    39

    How to search to spreadsheets for a match and then pull data from matching row

    I would like to do the following:

    Check GS1 Barcode List 1 Column H against Active Listings Column K.
    If there's a match then copy GS1 Barcode List 1 Column A from the same row into Active Listings Column L in the same row

    Do the same for GS1 Barcode List 2 and the Active Listing spreadsheet

    Ive added a snippet of each to help. There may not be a match on these sheets but hopefully it will help with a formula.

    I really appreciate any help you can offer.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to search to spreadsheets for a match and then pull data from matching row

    Hi,

    The approach I'd adopt is to use a helper column say M, in the Listings sheet and check whether an item on the Active listings sheet exists in the List 1 or List 2 workbooks. If so grab the value from Column K in the List 1 or List 2 sheets, otherwise grab the value from column A in the Listings sheet

    Then copy the helper column M and Paste it back to Column A as values.

    e.g. in M2 of the Listings sheet copied down

    Formula: copy to clipboard
    =IFERROR(INDEX('GS1 Barcode List 1.xlsx'!$A:$A,MATCH(K2,'GS1 Barcode List 1.xlsx'!$H:$H,FALSE),1),A2)


    When you've pasted back to column A repeat the formula and change the GS1 List 1 reference to the List 2 reference.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-20-2016
    Location
    Bromsgrove
    MS-Off Ver
    Office 365
    Posts
    39

    Re: How to search to spreadsheets for a match and then pull data from matching row

    Thanks for that - I wouldnt need it to add the value from column A. if it left it blank I can then see any problems areas and work out why it doesn't match. They should ALL match.

    Just wanted to check if this would work in google sheets? Ive just started using it or should I go back to excel?

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to search to spreadsheets for a match and then pull data from matching row

    I've not tested in google sheets but as I recall MATCH() is a standard function essentially the same as in Excel so AFAIAA that wouldn't be a problem.

    Unless there's some reason not to use Excel, particularly now that in 365 it has co-authoring when used on a common server making it similar in functionality to google sheets I'd stick with Excel. On the whole I prefer find editing Excel easier, perhaps because I've used it for 20+ years. And the VBA macro coding seems easier than google's scripting.

+ 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. Replies: 19
    Last Post: 01-02-2018, 10:25 PM
  2. Need to pull matching values from another workbook using index match
    By rbhandair in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2015, 02:48 PM
  3. 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
  4. Pull up two data in two spreadsheets and compute
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2013, 12:12 AM
  5. Replies: 0
    Last Post: 07-18-2012, 03:45 AM
  6. [SOLVED] Match Search & Replace with 2 spreadsheets
    By ucsutah in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-21-2012, 05:22 PM
  7. pull data from 5 different spreadsheets
    By guerillaexcel in forum Excel General
    Replies: 1
    Last Post: 04-26-2010, 07:07 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