+ Reply to Thread
Results 1 to 3 of 3

Macro to transform raw data into a fixed template

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    4

    Macro to transform raw data into a fixed template

    Hi.
    I need som desperat help. I have a raw data sheet with 8000 lines times 12 months. I need to convert this data into a fixed template. i have recorded a macro, but I need som help with ajusting the macro so that it takes into consideration the following:
    When i filter on company code to only show some data, thats the data I want it to prosess to the other template.
    I also need it to loop throug several columns (each column is a month) a copy that data into one column in my template. For each column there are several fixed columns that needs to be copied also and placed in correct columns in my template.

    I have also attached a example sheet of the data..

    I'm thankfull with any help!

    this is my macro:
    Please Login or Register  to view this content.
    Moderator's Edit: Use code tags when posting code. To do so in future, select your code and click on the # icon at the top of your post window.
    Last edited by arlu1201; 01-22-2013 at 02:17 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro to transform raw data into a fixed template

    Its better if you explain what you are trying to accomplish with the help of your example file. Tell us what data should be copied where and which columns should be copied, etc.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    07-13-2012
    Location
    Norway
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro to transform raw data into a fixed template

    Hi, thank you. I'll trie to explain a bit better. What I want to accomplish is the following:
    From the example file column G to R should be copied togehter with column C, E and F. Column G to R shall be posted into column O in my template. Each month after one antoher downwards. Column C from example sheet should be pasted into column N in my template
    Column E from example sheet should be copied to column F in my template and column F from example sheet should be pasted into column G in my template.

    English is no my native language, so it may be better if I attach the template. From there you'l se what I'm trying to explain. The columns marked red is where I want data pasted from example sheet.
    Last edited by baardings; 01-22-2013 at 05:40 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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