+ Reply to Thread
Results 1 to 4 of 4

Return latest reported figure by firm in panel data

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Return latest reported figure by firm in panel data

    I have data for various firms - such as revenues, employees, etc. - for multiple time periods. There is no uniformity, so for some firms I'll have data for 8 time periods, for others for 1, for others for 30, etc. I have hundreds of columns, but the three relevant ones are: in one column is firm ID, in another column in reporting date, and in another column is number of employees.

    The attached sample data will make it easier to understand.

    I'd like a summary table that tells me the most recent reported number of employees for each firm, and the date of that reported figure. If that firm never reported any employee figures, then the summary table should still have a row for that firm ID, but blanks in the 'reporting date' and 'employees' columns. So, the summary table should be 3 columns - firm ID, reporting date and employees.

    The challenging aspect is that the most recent reported employee figure is not always the most recent date on which we got data from the firm (so I can't just do a sort followed by a 'remove duplicates'). It'll need either a multi-step formula solution or a VBA code (that's my guess).

    The attached sample data will make it easier to understand. It has the form of data I have and the desired output form.

    Have been on this for a while now, so would love some help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Return latest reported figure by firm in panel data

    Hi

    Why is the output data sorted in the order that it is sorted?

    rylo

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Return latest reported figure by firm in panel data

    Hi,

    No particular reason, it doesn't need to be sorted in any specific order. I think I just listed it randomly.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Return latest reported figure by firm in panel data

    Hi

    Try this

    Please Login or Register  to view this content.
    rylo

+ 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