+ Reply to Thread
Results 1 to 5 of 5

Need Help Extracting Data From 2 Worksheets with Corresponding Values

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Need Help Extracting Data From 2 Worksheets with Corresponding Values

    Here is the scenario: I have two worksheets named, Sample 1 and Sample 2. (see attachments to follow along).
    There are three columns in both worksheets however Sample 1 is missing the data from columns B and C in Sample 2.

    I can't just copy over columns B and C from Sample 2 to Sample 1 because Sample 2 has 1000's of extra SKU numbers in column A. Each SKU contains corresponding data in columns B and C. I've highlighted the extra rows grey in Sample 2 to show what I mean and I have attached a 3rd worksheet named "Sample 1 Desired Results" to show the results I am looking for.

    The attached worksheets just contain about 20 rows as a small sample, but in reality these worksheets contain well over 10000 rows of data and to do this manually, it will take me forever.

    If someone could advise me step by step what can be done to expedite this process rather than having to spend days doing this manually, it would be greatly appreciated.

    Thank you in advance....
    Attached Files Attached Files

  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 Help Extracting Data From 2 Worksheets with Corresponding Values

    You can use the VLOOKUP function to draw over matching data from one workbook to another.
    _________________
    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
    03-02-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Need Help Extracting Data From 2 Worksheets with Corresponding Values

    Jerry, any chance I can get some additional details, perhaps steps laid out? I haven't come up with a method yet using VLOOKUP that has worked correctly.

  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 Help Extracting Data From 2 Worksheets with Corresponding Values

    1) Open both workbooks
    2) In sample 1 cell B2 type the start of your formula:

    =VLOOKUP($A2,

    3) now stop typing and switch to the other workbook and highlight columns A:C and the formula will update itself to:

    =VLOOKUP($A2, '[Sample 2.xlsx]Sheet1'!$A:$C,

    4) now complete the formula by indicating you want values back from the second column in the defined range, and exact matches only

    =VLOOKUP($A2, '[Sample 2.xlsx]Sheet1'!$A:$C, 2, FALSE)


    5) Now you can copy that cell B2 to C2, and edit the 3rd parameter so it brings back a value from the 3rd column

    =VLOOKUP($A2, '[Sample 2.xlsx]Sheet1'!$A:$C, 3, FALSE)

    6) Copy B2:C2 downward

    7) You can now close the Sample 2.xls workbook and the formulas in Sample 1 will update themselves to include the full path to that file, and keep working.

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Need Help Extracting Data From 2 Worksheets with Corresponding Values

    Awesome! Thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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