+ Reply to Thread
Results 1 to 6 of 6

Copy certain cells from a row to another sheet if cell equals value

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    Mumbai
    MS-Off Ver
    2010
    Posts
    2

    Copy certain cells from a row to another sheet if cell equals value

    I have a workbook with 10 different sheets. The one has a compilation of all of the data (Sheet "Sheet1") and the rest need the data copied to them from sheet1 based on values from Sheet1, column L. Column L, is a client name (for instance the first value in cell L2 is xyzz). The rest of the sheets are named accordingly (so sheet 2 is named xyzz). I need a marco that will search column L in sheet1 for a value, and if a cell in the column matches the value then it copies few cells (A,B,C & G) from that row / an entire row to the first empty row in another sheet. I am trying to make this as clear as possible so at the risk of possibly being redundant let me give this example. In sheet1 in cell L2 the value is xyzz. I need the macro to search column L, find that L2 matches xyzz, copies few cells / or entire row that L2 is in, and Pastes it to the first empty row in sheet "xyzz". Any help would be greatly appreciated. Thank you.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy certain cells from a row to another sheet if cell equals value

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Copy certain cells from a row to another sheet if cell equals value

    Nikc welcome with us,
    It will really easier to prepare a sample test file to help for debugging, else we have to do it ourselves and it will take time.
    PCI
    - Battle without fear gives no glory - Just try

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Copy certain cells from a row to another sheet if cell equals value

    Try this to see if this works as per your requirement.........
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    11-03-2014
    Location
    Mumbai
    MS-Off Ver
    2010
    Posts
    2

    Re: Copy certain cells from a row to another sheet if cell equals value

    THANX A MILLION. BOTH VB's ARE WORKING GR8. YOU GUYS ROCK.......

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Copy certain cells from a row to another sheet if cell equals value

    You're welcome. Glad we could help.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy row if cell value equals string - All worksheets in book to new sheet
    By psl in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2013, 11:27 AM
  2. [SOLVED] Copy row to another sheet if cell equals value
    By AggyRJ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-31-2013, 01:11 AM
  3. [SOLVED] If cell X's content in Sheet A equals to cell Y's content in Sheet B, Then copy some data.
    By sunheroj in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-09-2012, 09:25 AM
  4. If value equals x then copy paste rows to new sheet
    By SPSK88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-16-2012, 10:15 AM
  5. If Cell equals text Copy Cells, B2,B3,B4
    By Djmask in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2005, 11:11 AM

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