+ Reply to Thread
Results 1 to 2 of 2

Dataset reshape- restructure.

  1. #1
    Registered User
    Join Date
    07-24-2013
    Location
    new york
    MS-Off Ver
    Excel 2003
    Posts
    62

    Dataset reshape- restructure.

    Hello guys,

    These are my variables:
    GranteeID
    Funding= Funding type there are 4 funding types (a,b,c,d)
    ProviderID=provider of the services
    Services= type of services (there can be 5 different type of services).

    In this dataset the services is the unit of analysis- that is one row per service. Basically, I want the provider to be the unit of analysis so one provider per row. However, this can be tricky since a provider provide more than one service, can be ralted to more than one grantee and can be funded for more one funding part (a,b,c,d). Providers needs to be associate to only one grantee. We chose the grantee based on a hierarchy. This is how my final dataset should look like.

    Provider: only one provider per line
    GranteeMain: This grantee should be chosen based on the hierarchy.
    FundingMain: This funding type should be the funding type of the grantee selected.
    Funding A: YEs or no
    Funding B: YEs or no
    Funding C: YEs or no
    Funding D: YEs or no
    Service1 : YEs or no
    Service2 : YEs or no
    Service3: YEs or no
    Service4: YEs or no
    Service5 : YEs or no

    The grantee_main hierarchy is as follow. If providerID equals granteesID this grantee should be chosen as grantee_main. Follow by, grantees that have funding part C, D, B, A in that order. For example, for provider 33, grantee 33 should be chosen as grantee_main. For provider 88 grantee 80 should be chosen as grantee_main since C comes before A in the hierarchy.

    GranteeID Funding ProviderID Service
    33 Part A 33 1
    33 Part A 33 2
    78 Part B 33 2
    14 Part A 82 3
    80 Part B 82 4
    80 Part C 82 5
    80 Part B 82 5
    80 Part B 82 2
    80 Part B 82 3


    I really need some help with this. I am think and rethinking how to do this but I cant figure a way. Hope somebody can help me. I am attching my actual dataset as well as the out I would like to see (tab3)

    Best,
    Marvin
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Dataset reshape- restructure.

    What would the advantage of such a data layout be that the current layout lacks? The layout that you are asking for appears to me to be that of a database report created from database tables and not a single data table that you now have.

    My first impression is that this would be a VBA project and not one for formulae.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 3
    Last Post: 01-23-2014, 10:13 AM
  2. [SOLVED] Vertical chart dataset needs to be converted into pivotable dataset
    By aspak84 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-17-2013, 06:06 PM
  3. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  4. graphing daily dataset with weekly dataset
    By [email protected] in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-27-2009, 09:39 AM
  5. Converting A Quarterly Dataset to Weekly Dataset
    By Dan Thompson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2005, 05:30 PM

Tags for this Thread

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