+ Reply to Thread
Results 1 to 8 of 8

Copy & Paste Row Based On Corresponding Cells

  1. #1
    Registered User
    Join Date
    03-24-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    29

    Copy & Paste Row Based On Corresponding Cells

    I attached a workbook that needs to copy only the rows with corresponding cells that have data in them located in columns E, F, G, or H in sheet1, it does not matter what is entered in these cells, then paste the corresponding row values to the next available row in sheet2.
    Attached Files Attached Files
    Last edited by strato1983; 01-19-2011 at 04:51 PM. Reason: Marked as solved

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

    Re: Copy & Paste Row Based On Corrosponding Cells

    What do you mean by "corresponding"? Do you mean, for example, all rows in which E has a value in it? Do you mean that you want all rows with a value of 1 in colums E:H to copy to sheet 2? Something else?

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy & Paste Row Based On Corrosponding Cells

    see attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-24-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Copy & Paste Row Based On Corrosponding Cells

    Your macro works great! Can it copy and paste the values only? Great work!

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy & Paste Row Based On Corrosponding Cells

    check attachment
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-24-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Copy & Paste Row Based On Corrosponding Cells

    Almost there! The copy & paste with values works but I found with both versions of you macro that each row is duplicate twice if there is a value in column E & F on the same row, three times if there is a value in E,F & G, and so on...

    What it needs to do is only copy the row once if a single value is entered or if multiple values entered in columns E:H. I'm guessing your formula scans down column E copies each row it finds a value, then moves to column F, then G, and so on.

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Copy & Paste Row Based On Corresponding Cells

    check attachment
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-24-2009
    Location
    Louisiana, USA
    MS-Off Ver
    Excel 2003
    Posts
    29

    Re: Copy & Paste Row Based On Corresponding Cells

    It works! Fantastic job!
    thank you for all your help, I will be sure to "add to your reputation" on this forum as an excellent Excel guru.

+ 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