Results 1 to 4 of 4

Panel data calculation in single column.

Threaded View

  1. #1
    Registered User
    Join Date
    05-12-2017
    Location
    london
    MS-Off Ver
    2007
    Posts
    2

    Panel data calculation in single column.

    Dear all,

    my panel data set consists of 28 countries for which I have one variable on an annual base for 18 years (1998 until 2015). The data set is strongly balanced though there are some data gaps. Column A consists of all countries, column B of the years and column C the data for the variable.

    For each given year I would like to calculate the difference in the variable for all country-pairs. For example:


    Name: Unbenannt.png
    Views: 15
    Size: 17.3 KB


    In this example I am interested in the difference in the GDP between Germany – UK, Germany-Belgium and UK-Belgium in the year 1998. In addition, I would like to calculate the differences for those three country-pairs for the years 1999 and 2000. However, I do not want to calculate differences across different years.

    Can you help me please to compute those differences? I also have to make sure that Excel computes only differences if data is available for both countries instead of filling gaps with a value of zero.

    Thank you very much.

    Kind regards
    Attached Images Attached Images
    Last edited by FDibbins; 05-14-2017 at 01:29 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] (Beginner help) For loop inside do loop that displays information from reference sheet.
    By lediable007 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-08-2016, 03:20 PM
  2. [SOLVED] Auto email loop with formatted table data breaking on second loop VBA
    By Who_else in forum Excel General
    Replies: 6
    Last Post: 03-24-2016, 06:22 AM
  3. [SOLVED] VBA to loop within a loop of multiple blocks of data (currentregion) ... Expert needed
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2016, 08:28 PM
  4. HOW TO: Pause loop, fix error on a popup UserForm, continue loop
    By AndyMachin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2014, 04:37 PM
  5. Loop through multiple files and call macros (but unable to loop)
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2014, 12:04 PM
  6. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  7. Why did an inner loop variable start overwriting the outer loop range suddenly?
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2012, 03:24 PM

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