+ Reply to Thread
Results 1 to 1 of 1

Macro to copy data saved in one column to multiple columns

  1. #1
    Registered User
    Join Date
    09-25-2019
    Location
    Madrid
    MS-Off Ver
    2019 Profesional Plus
    Posts
    1

    Macro to copy data saved in one column to multiple columns

    Hello!, first of all, thanks for your attention.

    I am really new to VBA and I'm self-learning, so I am really sorry if this is a easy task and I am doing it completely wrong, I promise to keep learning.

    After performing a cyclic experiment, the experimental results I get from the software are saved in .csv files, using column A for "X" values and B for "Y" values. The data for each cycle is separated with 5 rows. The "X" values for each cycle remain constant, this is, the values always repeat. I have attached one as example.

    I would like to have a macro that can transform those two basic columns in a table with a column for "X" values, and as many "Y" columns as cycles I performed in the experiment. So I was thinking of using a while loop, that stops when the are no more values to copy.

    As a draft I tried to write this code, but I get several errors:

    Please Login or Register  to view this content.
    Also, how could I use this macro in several different files? Is there any way to execute it without copying and pasting the code in each one?

    Thanks a lot, any help is welcomed
    Attached Files Attached Files

+ 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 one column into multiple columns
    By michaelkeel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2015, 11:04 AM
  2. 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
  3. Saving copy of data and then running macro on all active worksheets in saved copy?
    By Science87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2014, 11:56 AM
  4. [SOLVED] Macro to copy data from a row (consist of multiple columns) into to single column
    By kammariarun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-06-2013, 06:25 PM
  5. Macro to loop between multiple columns and copy the text in one column
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-14-2013, 06:41 AM
  6. Macro to copy 3 columns of data from multiple sheets into 3 columns on 1 sheet
    By bballdcm2007 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2012, 04:37 PM
  7. Lookup Data in One Column, Find Multiple Entries in Next, Copy to Multiple Columns
    By nzxt1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 01:17 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