+ Reply to Thread
Results 1 to 4 of 4

Need to match one cell to another and paste row to new sheet

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need to match one cell to another and paste row to new sheet

    Any help is appreciated!

    I'm a total novice at macros, but can muddle my way through. I have a workbook with product info on two sheets. I want to copy the rows of Sheet 1 and Sheet 2 if their A columns (Part Numbers) match. For example, on the sample file, A2 of Sheet 1 matches A2 of Sheet 2. I want row 2 (the matching row of each) to copy to Sheet 3. If this is too muddy, I'll be happy with copying only the row from Sheet 2 that has a matching value in Sheet 1, as Sheet 2 has about 3500 rows to Sheet 1's 250.


    Sample.xlsm

    Thank you, thank you, thank you in advance!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to match one cell to another and paste row to new sheet

    This should do it:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-23-2012
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need to match one cell to another and paste row to new sheet

    Thank you! It took a bit of tinkering to get it to work with the large workbook, which had quite a few more fields, but we got it done.
    I really appreciate your help!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to match one cell to another and paste row to new sheet

    There you go, tinkering is always required. Cheers.

    If that takes care of your need, please select Thread Tools from menu above and set this topic to SOLVED.

+ 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