Macro needed to transpose data

  • I need to transpose and duplicate a lot of data in order to put it into pivot table format. Attached is an example of a small excerpt of the raw data, and how the data should look after manipulation.

    Description of data manipulation: Values in column A are duplicated for one full set of serial numbers (C1:U1), serial numbers are transposed into column B once for every different value in column A, Value1 and Value2 should be transposed into columns C&D respectively. I know this sounds a bit long winded, but the file should explain it quite clearly.

    Currently I’m doing this manually and it takes an extremely long time, so was hoping someone could help me to put together a macro to automate it.

    I should add that the amount of serial numbers, values in column A are not constant from report to report.

    Any help would be much appreciated, thanks!

  • Re: Macro needed to transpose data


    For instance:



    Wigi

    Regards,


    Wigi


    Excel MVP 2011-2014


    For more Excel memes: visit http://www.wimgielis.com ==> English articles ==> Excel memes


    -- Topics without [CODE] tags or a meaningful topic title, will be neglected by me (and probably many others as well) --

  • Re: Macro needed to transpose data


    Thanks for the reply, and sorry for the very late response but i'm finding that this macro isn't doing anything to the data when i place it in the first sheet (raw data) of the uploaded file and run it.

    I'm very new to macros, so this is probably due to an error on my part. should i be using a particular active cell? or placing it in the second sheet?

    Many thanks

  • Re: Macro needed to transpose data


    Did you look at columns AA and the columns to the right? The output will be there...

    Regards,


    Wigi


    Excel MVP 2011-2014


    For more Excel memes: visit http://www.wimgielis.com ==> English articles ==> Excel memes


    -- Topics without [CODE] tags or a meaningful topic title, will be neglected by me (and probably many others as well) --

  • Re: Macro needed to transpose data


    Herbds7,


    Thanks for helping to provide solutions.


    Getting the data from the original format to the table you show may not be clear to the OP and other users who view this thread/attachment.
    Would be helpful if you provided explanations on the process/steps taken.


    Thanks.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!