+ Reply to Thread
Results 1 to 8 of 8

Transposing Data from Columns to Rows

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    Bedlington, Northumberland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Transposing Data from Columns to Rows

    Hi All,

    I new to Macro programming in Excel 2003 and I need to write a macro to convert data from columns to rows.

    Basically I have dates along the columns from say column B onwards, then down the rows I have products, in the cells in the matrix I have volume data.

    I need to transpose the data into a nice neat bloke suitable for a pivot table, can anyone help?

    Thanks

    Dave

    PS I have attached a basic example of "as is" data and the desired result
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-29-2013
    Location
    Bedlington, Northumberland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Transposing Data from Columns to Rows

    Sorry all it should read "nice neat block" not "bloke" oops

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Transposing Data from Columns to Rows

    Try the attached.
    Attached Files Attached Files

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Transposing Data from Columns to Rows

    Here's a formula approach.

    Try adding/changing data in the grid in Table1 including the header dates.

    The Names can be made Dynamic if you decide to go this way.
    Attached Files Attached Files
    Last edited by Marcol; 06-29-2013 at 03:49 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Transposing Data from Columns to Rows

    think you'll find most blokes from fife are quite neat
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Transposing Data from Columns to Rows

    Aye if your talking whisky Martin ...
    On that note the pub beacons ...

  7. #7
    Registered User
    Join Date
    06-29-2013
    Location
    Bedlington, Northumberland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Transposing Data from Columns to Rows

    Thanks, will give it a go when I get back to my PC and let you know how it goes

  8. #8
    Registered User
    Join Date
    06-29-2013
    Location
    Bedlington, Northumberland
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Transposing Data from Columns to Rows

    Cheers, many thanks

+ 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