+ Reply to Thread
Results 1 to 6 of 6

Combining multiple columns data into a single column

  1. #1
    Registered User
    Join Date
    03-24-2016
    Location
    Albuquerque NM
    MS-Off Ver
    2013
    Posts
    3

    Combining multiple columns data into a single column

    I've been working on a problem for several days now and can't seem to figure it out. I believe it is going to take VBA to do. I have several different part numbers that have different dates below (dates represent 1 unit of inventory). I need to combine the dates (always changing) into a single column in a different tab for each part number. I've messed around with if statements and hlookups and had zero luck. Any help would be much appreciated.
    Screenshot 2016-03-24 at 7.08.39 PM.png
    Last edited by tmor; 03-24-2016 at 09:09 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Combining multiple columns data into a single column

    could you send the excel file instead of its picture?

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Combining multiple columns data into a single column

    Hi tmor,

    Welcome to the forum!!

    Post back re how this goes:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    03-24-2016
    Location
    Albuquerque NM
    MS-Off Ver
    2013
    Posts
    3

    Re: Combining multiple columns data into a single column

    I am getting a "Run-Time error "9": Subscript our of range" message. I am very inexperienced with VBA. From the reading I've done it looks like the array in the code does not match with the sheet. I am currently at work and can not upload the sheet to show as an example.

  5. #5
    Registered User
    Join Date
    03-24-2016
    Location
    Albuquerque NM
    MS-Off Ver
    2013
    Posts
    3

    Re: Combining multiple columns data into a single column

    Looking more into it i figured out the subscript out of range problem. It is running but not organizing the data correctly. I'm going to dig around a little more

  6. #6
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Combining multiple columns data into a single column

    I am getting a "Run-Time error "9": Subscript our of range" message.
    You need to change either the sheet name the wsSource variable is pointing to (i.e. Sheet1) and / or the sheet name the wsOutput variable is pointing to (i.e. Sheet2) to the exact sheet(s) name(s) that is applicable to your data. That's why I put the comment 'Change to suit if necessary' next to the line that sets those variables.

    It is running but not organizing the data correctly.
    It worked fine for me Until we can see a sample of your data it's very hard to provide any kind of a solution.

    HTH

    Robert
    Last edited by Trebor76; 03-25-2016 at 07:15 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. Copy data from multiple columns into a single column
    By ajith.wilson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2015, 07:54 AM
  2. Combining data in multiple columns(all columns have same length)into one column
    By nzi0001 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-24-2014, 11:19 AM
  3. Exporting multiple columns of data to single column
    By rumfinator in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2013, 03:10 PM
  4. [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
  5. single data column into multiple columns
    By ifsmithy in forum Excel General
    Replies: 5
    Last Post: 02-08-2012, 12:38 AM
  6. How do I parse a single column of data into multiple columns?
    By stevenica in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-02-2011, 02:27 PM
  7. multiple columns data append in single column
    By suresh3566 in forum Excel General
    Replies: 3
    Last Post: 06-11-2011, 07:52 AM

Tags for this Thread

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