+ Reply to Thread
Results 1 to 4 of 4

Matching Cells from two seperate sheets of excel data while creating a third sheet

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    2

    Matching Cells from two seperate sheets of excel data while creating a third sheet

    I am working with two large lists of product information from a manufacturer that I need to compare and match part numbers with. I have an old list from last year and a new one from this year and I need to be able to see what part number are still being offered, which ones are no longer being offered, and new part numbers being offered. I would also like to compare the final price column to see if the matching part numbers have increased in price, decreased in price, or stayed the same. I have tried the VLOOKUP function for comparison, but it still leaves me with a lot of extra manipulation to get the final result. I have attached a sample document with three sheets of data. The first sheet would represent last years data, sheet2 would represent this years data, and sheet3 would represent the final result.

    Thank you for any help in advance. TestSheet4Comparison.xlsx

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Matching Cells from two seperate sheets of excel data while creating a third sheet

    TobyJoel,


    Detach/open workbook AlignLists w1 w2 to wR - TobyJoel - EF871565 - SDG15.xlsm and run the AlignLists macro.



    With the prior years data in Sheet1, and the current years data in Sheet2. The macro will create a new worksheet Results, with the data aligned and formulae inserted.


    If you want to use the macro on another workbook:


    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    1. Copy the below code, by highlighting the code and pressing the keys CTRL + C
    2. Open your workbook
    3. Press the keys ALT + F11 to open the Visual Basic Editor
    4. Press the keys ALT + I to activate the Insert menu
    5. Press M to insert a Standard Module
    6. Where the cursor is flashing, paste the code by pressing the keys CTRL + V
    7. Press the keys ALT + Q to exit the Editor, and return to Excel
    8. To run the macro from Excel, open the workbook, and press ALT + F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.


    Please Login or Register  to view this content.

    Before you use the macro with Excel 2007 or newer, save your workbook, Save As, a macro enabled workbook with the file extension .xlsm


    Then run the AlignLists macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    2

    SOLVED Matching Cells from two seperate sheets of excel data while creating a third sheet

    Thank you Stan. This worked perfectly! I appreciate the help and the quick reply.
    -Toby
    Last edited by TobyJoel; 10-26-2012 at 03:34 PM.

  4. #4
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Matching Cells from two seperate sheets of excel data while creating a third sheet

    TobyJoel,

    You are very welcome. Glad I could help.

    Thanks for the feedback.

    Come back anytime.

+ 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