+ Reply to Thread
Results 1 to 6 of 6

Make panel structure data from cross section

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2010
    Posts
    15

    Make panel structure data from cross section

    I have data of the form:

    id obs1 obs2 obs3 obs4
    1 20 0 66 53
    2 0 0 0 0
    3 0 5 8 0
    4 4 5 6 55
    5 5 36 2 6
    6 58 3 58 6

    How can I put it into the form:

    1 20
    1 0
    1 66
    1 53
    2 0
    2 0
    2 0
    2 0
    3 0
    3 5
    3 8
    3 0
    4 4
    4 5
    4 6
    4 55
    5 5
    5 36
    5 2
    5 6
    6 58
    6 3
    6 58
    6 6

    Thanks!

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Make panel structure data from cross section

    One way:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

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

    Re: Make panel structure data from cross section

    try it like this
    Attached Files Attached Files
    "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

  4. #4
    Registered User
    Join Date
    09-01-2010
    Location
    SoCal
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Make panel structure data from cross section

    Sorry to butt in, but those are outstanding solutions! What if, however, you also want the OBS1, OBS2 etc. headings in another column. How would you do this? I run into this all the time with data from external sources, I need to 'normalize' a pivottable and put the horizontal headings into the data itself.

    Forgive me if this question breaks forum protocol as i'm not the OP.

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Make panel structure data from cross section

    Please take a few minutes to read the forum rules, and then start your own thread.

    Thanks.

  6. #6
    Registered User
    Join Date
    05-28-2010
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2010
    Posts
    15

    Smile Re: Make panel structure data from cross section

    Thanks gang!

    I can always count on you!

+ 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