+ Reply to Thread
Results 1 to 3 of 3

Collapsing a data set

  1. #1
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151

    Collapsing a data set

    Hi

    I'm trying to collapse a dataset. You should be able to see what I mean by the example I've attached.

    I have a very large data set of firms. Each firm has a number of subsidiaries in certain locations. For example, in my data Wal-Mart has two subsidiaries in Chile; whilst Shell has three subsidiaries: 2 in the Philippines and 1 in Pakistan.

    For each subsidiary I have data on total assets (for some years between 2002 and 2010 the data is missing but that's ok).

    What I need is a formula to create a new dataset, like the one below the master. This data set is essentially each firm's exposure to a country in terms of total assets. The example shows an illustration of this.

    It essentially has Wal-Mart appear once for Chile and Sums up the Total assets across each subsidiary. Shell appears twice: it sums up total assets for the 2 subsidiaries in the Philippines and includes the total assets for the subsidiary in Pakistan.

    Is there a quick formula to do this? In reality each firm has lots of subsidiaries from many different locations.

    Thanks very much for your help.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Collapsing a data set

    Quote Originally Posted by cj21 View Post
    Hi

    I'm trying to collapse a dataset. You should be able to see what I mean by the example I've attached......
    ...or in this case not attached yet.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    07-28-2005
    Posts
    151

    Re: Collapsing a data set

    Sorry, not sure why this hasn't worked. This is a re-try.
    Attached Files Attached Files

+ 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