+ Reply to Thread
Results 1 to 7 of 7

copy and paste multiple rows into one row

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    9

    copy and paste multiple rows into one row

    Hi,

    I need help to copy and paste (as values)data from multiple rows (which will change) to one row on a different sheet.
    Each row has differing amounts of columns with values/text in them. I only want the columns in each row that contain values/text. Blank rows are not to be copied.
    the attached file has a before and after example to help explain.

    Appreciate any help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: copy and paste multiple rows into one row

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    9

    Re: copy and paste multiple rows into one row

    Thanks heaps!!
    That worked a treat.

    Are you able to provide a simple explanation of how the macro works?

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: copy and paste multiple rows into one row

    Loop through row/column and when the data is in, it adds to the array and output at the end.

    HTH.

  5. #5
    Registered User
    Join Date
    05-25-2018
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    9

    Re: copy and paste multiple rows into one row

    OK, so now I have an additional requirement!
    In the after sheet, I actually need the first cell on each row from the before sheet to append to the last cell of the previous row.
    see updated example with new results highlighted.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: copy and paste multiple rows into one row

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-25-2018
    Location
    Queensland, Australia
    MS-Off Ver
    2016
    Posts
    9

    Re: copy and paste multiple rows into one row

    Thanks once again - awesome work!

+ 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] Formula to copy and paste multiple rows while skipping blank rows in the table
    By teton88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-07-2018, 02:16 PM
  2. Copy and Paste Same Rows Multiple Times
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-31-2017, 01:05 PM
  3. How to copy and paste into multiple rows within SAME column
    By kksf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2013, 06:10 PM
  4. [SOLVED] Copy and paste rows from one sheet to another w/ multiple filters
    By perducci in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 11:01 AM
  5. Replies: 4
    Last Post: 06-02-2009, 06:25 AM
  6. multiple rows copy n paste
    By fun123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-27-2009, 05:43 AM
  7. Copy and paste rows multiple times
    By Novis in forum Excel General
    Replies: 5
    Last Post: 03-21-2009, 11:43 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