Closed Thread
Results 1 to 3 of 3

Excel 2007 : Finding Matching Values in Separate Sheets and Copying Corresponding Data

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Finding Matching Values in Separate Sheets and Copying Corresponding Data

    So, I'm working with 2 different reports.

    Sheet 1, Column A has product models numbers
    Sheet 2, Column A, has most of the exact same model numbers

    Sheet 1, Column B has a QTY count
    Sheet 2, Column B does not have a QTY count

    I would like to:
    Copy the QTY count from Sheet 1 Column B
    to Sheet 2 Column B as long as it corresponds to the same model number

    So for example:
    If Sheet 1 Column A contains the model number "32LK" in cell A6
    And Sheet 1 Column B contains the QTY 15 in cell B6

    And Sheet 2 Column A contains the model number "32LK" in cell A14
    Then I would like the QTY of 15 copied into Sheet 2 cell B14


    This will need to check for all matching model numbers in both columns in both sheets and copy all applicable QTY values accordingly as stated above.


    Really struggling to find a solution here, so help would be EXTREMELY appreciated!


    Thanks in advance

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Finding Matching Values in Separate Sheets and Copying Corresponding Data

    You need to use VLOOKUP.

    =VLOOKUP($A14,'Sheet1'!$A:$B,2,FALSE)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Finding Matching Values in Separate Sheets and Copying Corresponding Data

    Hamidxa,

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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