+ Reply to Thread
Results 1 to 4 of 4

Copy adjacent cells based on matched cell criteria

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    asdfsadf
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy adjacent cells based on matched cell criteria

    Hi All,

    Quick question - please see attached excel sheet. I've attempted to adapt a previous example I've found on this forum and have come unstuck

    I'm trying to find a way to search a second sheet in a workbook for specific criteria outlined in a first sheet, and then to copy the secondary data found against a successful search match to the original sheet. The secondary data is columns B through to AC.

    I've managed to get it to copy just column B, but I can't figure out how to make it copy the remaining columns.

    Any help is greatly appreciated
    Attached Files Attached Files
    Last edited by asdfwqefwe3; 02-26-2013 at 01:15 AM.

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

    Re: Copy adjacent cells based on matched cell criteria

    Replace these 2 lines in your code. B2:B & LR and Transpose=True as below.

    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.

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    asdfsadf
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copy adjacent cells based on matched cell criteria

    perfect!! thanks for your help!

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Copy adjacent cells based on matched cell criteria

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as "SOLVED".
    For the meantime I'll do it for you.

    How?
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    Note:
    You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
    By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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