+ Reply to Thread
Results 1 to 4 of 4

Loop and combine multiple columns

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Loop and combine multiple columns

    Hi!

    I need help with a loop like this:

    1. loos trough range A1:A10 and copy all cells that contains a value (text or numeric) to Column D from first row down.
    2. loop trough range B1:B10 and copy all cells that contains a value (text or numeric) to Column D from lastrow that contains data.

    Sample workbook: excelforum.xlsx

    Best regards

    Petter
    Last edited by Petter120; 04-28-2015 at 03:46 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Loop and combine multiple columns

    Try this

    Please Login or Register  to view this content.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Loop and combine multiple columns

    Try the attached.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Loop and combine multiple columns

    Thanks both of you, it works perfect

+ 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] VBA to combine results from multiple workbooks to one spreadsheet - loop/copy not working
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-10-2014, 11:58 AM
  2. Macro to combine multiple columns keeping few columns specific
    By lramesh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-16-2013, 12:44 PM
  3. Replies: 8
    Last Post: 09-24-2013, 05:52 AM
  4. Replies: 0
    Last Post: 08-20-2012, 12:10 PM
  5. Replies: 0
    Last Post: 07-31-2006, 12:13 PM

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