+ Reply to Thread
Results 1 to 4 of 4

Take the same column from multiple worksheets to create a new table

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Take the same column from multiple worksheets to create a new table

    The instruments I use have created 100 data files that take a measurement every few hundredths of a second for twenty channels at a time for 100 seconds.

    Time a b c d e f etc...
    0.01 1 0 1 2 5 7
    0.03 5 1 1 3 4 2
    0.05
    0.07
    etc...

    I have combined these into a single workbook, but now I need to reformat the data into one sheet per each channel (column). This would leave me with 20 sheets. I need a quick way to take all of the data from the same column on every sheet and put it into a table so that the data from the next sheet appears in the next column (like below). Is there any easy way to do this?

    Time a1 a2 a3 a4 a5 a6 etc...
    0.01 1 2 3 5 1 2
    0.03 5 6 3 1 4 6
    0.05
    0.07
    etc...

    The sheets are numbered XXXX 001, XXXX 002.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Take the same column from multiple worksheets to create a new table

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Take the same column from multiple worksheets to create a new table

    Thanks for the quick reply! Sorry, but I don't have a clue when it comes to this stuff. Do I write this in as a Macro? Also, what are the variables in this script?

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Take the same column from multiple worksheets to create a new table

    I've rewritten it with variables:
    Please Login or Register  to view this content.
    Yes you need to run it as a macro. Press alt+f11 to open the vba editor, copy and paste into a standard module (insert->module) and then press f5 to run.

+ 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. VBA to autofill column across worksheets. Worksheets have dynamic table range
    By Kahmed2R in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-25-2013, 09:15 AM
  2. Create Macro if any cell under "QUANTITY" Column = 0, then Hide, Multiple Worksheets
    By Spodzemny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 04:15 PM
  3. [SOLVED] Automatically create a column in one table from the totals column in another table
    By TravisRauch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2012, 02:56 PM
  4. [SOLVED] Can't create a Master Pivot table from multiple worksheets in the same workbook
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-30-2012, 09:41 AM
  5. Create 1 pivot table from multiple worksheets
    By rim78 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2007, 06:06 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