+ Reply to Thread
Results 1 to 4 of 4

Seach for data from one sheet to another sheet and copy past adjacent columns

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    9

    Seach for data from one sheet to another sheet and copy past adjacent columns

    Hey Guys,

    I am sure this would be very easy for most of you but this is killing me.

    I have this file with two sheets. Sheet 2 is static data and Sheet 1 will be variable data and will keep changing each week.

    So what I want to do is to go through each cell in Sheet 2 row A and find that code in Sheet 1(could be anywhere in the sheet1) and then copy the two adjacent column values in sheet 1 next to the code and paste it on sheet 2.

    For example, the code should go to Sheet 2 column A, first cell 12362 and then look for this code in sheet 1 and copy the value 101 and 102 and paste it in sheet 2 in front of 12362. And then look for next cell on sheet 2 (18991) and so on.

    Can you please help me do this.. Thank you in advance

    I am attaching the sample file
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-31-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Seach for data from one sheet to another sheet and copy past adjacent columns

    Can anyone please help?? Please?

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Seach for data from one sheet to another sheet and copy past adjacent columns

    This will work for if there is only one unique Class Code.

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  4. #4
    Registered User
    Join Date
    07-31-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Seach for data from one sheet to another sheet and copy past adjacent columns

    Wow that was quick. Mike you are the Man!! Thanks a lot for the help. The code works perfectly fine. Thanks again

+ 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