+ Reply to Thread
Results 1 to 6 of 6

combining multiple columns into column on new tab

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Talking combining multiple columns into column on new tab

    Hello,

    What I am trying to do is relatively simple, but am having trouble working through it.

    I am trying to do the following:

    1. Sheet1 has several columns which change on a daily basis, in each of those columns there are a dynamic number of rows which also change. For example column A may have 8 rows with data, but column B may have 15 rows and so on. The number of rows and columns change each day.

    2. The headers take up the first 3 lines in any given column, so the data I want to copy starts on row 4. I want the macro to go through each column on sheet1 and copy all of the rows starting on row 4 and below until empty. Then I want it to paste that data into one single column on Sheet2 (for example would paste everything in A1). So on sheet2 column A would contain all of the data for x number of columns from sheet1.



    Here is a small example

    Sheet1:

    Col A Col B Col C

    1 5 9
    2 1 8
    3 1 2


    Sheet2:


    Col A

    1
    2
    3
    5
    1
    1
    9
    8
    2


    Any Help is appreciated, thanks!!!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: combining multiple columns into column on new tab

    see if this gets you going in the right direction

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: combining multiple columns into column on new tab

    Thank you,

    working somewhat well but isnt capturing all of the values, for example one column has 50 rows and it's only grabbing a few

    When it pastes on sheet2 it is leaving spaces in btw the sections it is pasting, can I eliminate those? Also can the values be pasted as special?

    thanks

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: combining multiple columns into column on new tab

    my goof....give this a try....technically I'm not copy and pasting....

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: combining multiple columns into column on new tab

    works great! thanks, I was spinning my wheels

    the only thing is it leaves 3 empty rows after the first section not sure why

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: combining multiple columns into column on new tab

    step through the code and watch it to see what it does....it's probably because the FOR loops start in the wrong spot....
    Last edited by judgeh59; 02-26-2014 at 05:57 PM.

+ 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. combining columns from multiple sheets into one column
    By lex1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2012, 02:45 AM
  2. [SOLVED] Combining multiple columns of data into single column
    By dsklein85 in forum Excel General
    Replies: 6
    Last Post: 10-30-2012, 11:18 PM
  3. Combining multiple columns into one column
    By Casper_DK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2011, 05:39 AM
  4. reposting: combining multiple columns into one column - enhancements
    By markx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2006, 11:20 AM
  5. [SOLVED] combining multiple columns into one column - enhancements
    By markx in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-16-2006, 11:15 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