+ Reply to Thread
Results 1 to 4 of 4

Compare Columns in Two Sheets. If Match, Transfer data in Cell from Sheet 1 to Shet 2

  1. #1
    Registered User
    Join Date
    08-03-2015
    Location
    Earth
    MS-Off Ver
    2013
    Posts
    5

    Compare Columns in Two Sheets. If Match, Transfer data in Cell from Sheet 1 to Shet 2

    Hi Guys,

    I have been working at this challenge for a while now. I hope someone could spare some time to assist me

    I have Two Worksheets with 3 Tabs: Product | SKU | Quantity.

    Both tabs are populated with Products. All Product in both worksheets are not similar

    All Product in Worksheet 1 have SKU in the next Column But No Product in Worksheet 2 have SKU

    I would like a method to compare Products in Worksheet 1 and 2. If any Products in Worksheet 1 has and associated SKU, then corresponding SKU for related Products in Worksheet 2 is copied and used to populated the SKU in Worksheet 2

    I hope that made some sence. Please see both files attached
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Compare Columns in Two Sheets. If Match, Transfer data in Cell from Sheet 1 to Shet 2

    Copy and paste the following macro in a regular module in your workbook with no SKU's. Save the workbook as a macro enabled file so that its extension is changed to "xlsm". Next save the workbook with the SKU's as an Excel workbook so that its extension is changed to "xlsx". Make sure that both workbooks are open and then run the macro.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    08-03-2015
    Location
    Earth
    MS-Off Ver
    2013
    Posts
    5

    Re: Compare Columns in Two Sheets. If Match, Transfer data in Cell from Sheet 1 to Shet 2

    Hello again and many thanks for your quick feedback. I was wondering if itwould be possible

    to effect a much neater method

    ie Compare Columns A and B vs E and F then match F to B if Column A (Cell) = E (Cell)


    just a thought. is it possible at all?

    Thanks

    Becon
    Attached Files Attached Files

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Compare Columns in Two Sheets. If Match, Transfer data in Cell from Sheet 1 to Shet 2

    Since you are using Excel 2013, you may use Power Query to get the desired result set.
    Import data from both the workbooks and create only connection, then merge both the queries to get the result in a separate table and that will be dynamic so that if you add more data or update data on any of the workbooks and refresh the query, the resultant table will update accordingly.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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: 7
    Last Post: 04-18-2016, 02:26 AM
  2. [SOLVED] Compare Data in 2 Columns in 2 sheet When there is a match transfer data from 2nd Column
    By kellyjo7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-19-2015, 01:05 PM
  3. [SOLVED] Compare 2 sheets, match data in 1 column, update row in sheet 2 & add new rows not matched
    By Synchronicity in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-11-2013, 01:21 PM
  4. [SOLVED] Match between 2 sheets, highlight and transfer to new sheet
    By Narasimharao Nandula in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 08-28-2013, 09:51 PM
  5. [SOLVED] Match two columns (two sheets) to pull data into sheet 1
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-28-2012, 05:51 PM
  6. Replies: 3
    Last Post: 03-30-2012, 07:21 AM
  7. Compare 2 columns in 2 sheets then enter data from a 3rd cell? Help!
    By julietayl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2012, 09:18 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