+ Reply to Thread
Results 1 to 5 of 5

How to create percentages for a panel data?

  1. #1
    Registered User
    Join Date
    10-15-2015
    Location
    Miami, USA
    MS-Off Ver
    2010
    Posts
    3

    How to create percentages for a panel data?

    Hello everybody

    I have a problem and I would be grateful if someone could help me with this:

    So, I have in excel this cell: format

    ID Year Value Share_over_total
    A 2000 1
    A 2001 4
    A 2002 9
    B 2000 5
    B 2001 3
    B 2002 1
    C 2000 7
    C 2001 4
    C 2002 2
    D 2000 8
    D 2001 2
    D 2002 3


    My problem is that I do not know how to get the values "Share_over_total" in automatic; that is, I would like to obtain the percentage of each value of each ID for each year over the sum of all the other values;

    For example, the "Share_over_total" of A for the year 2000 is: 1/(1+5+7+8), the "Share_over_total" of D for the year 2002 is: 3/(9+1+2+3).

    Does it exists a way to do this in automatic?

    Thank you very much!

    Kodi

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,970

    Re: How to create percentages for a panel data?

    Try this

    In D2 ..

    =$C2/SUMIF($B$2:$B$13,$B2,$C$2:$C$13)

    Copy down

  3. #3
    Registered User
    Join Date
    10-15-2015
    Location
    Miami, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: How to create percentages for a panel data?

    It worked! Thank you!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,970

    Re: How to create percentages for a panel data?

    Thank you for the feedback.

    If your question has been answered, could you please mark the thread as SOLVED : "Thread Tools" on tab on first posting.

  5. #5
    Registered User
    Join Date
    10-15-2015
    Location
    Miami, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: How to create percentages for a panel data?

    Sure. Ok, no prob

+ 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. [SOLVED] panel data charts
    By lana86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2015, 04:30 PM
  2. Replies: 2
    Last Post: 08-22-2013, 11:57 AM
  3. Create three dimentional table based on panel data set
    By Terese Svensson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2013, 04:10 PM
  4. Need help converting a dataset into panel data
    By szy753951 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2013, 11:28 AM
  5. [SOLVED] Conversion into panel data format
    By tulasiram in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-18-2013, 03:54 AM
  6. Panel Data Graph
    By Insert Name in forum Excel General
    Replies: 1
    Last Post: 03-22-2013, 12:07 AM
  7. Panel Data Regression in Excel
    By eoino in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2010, 09:21 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