Closed Thread
Results 1 to 2 of 2

Formatting, matching, and aggregating different datasets

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    United Kingdom
    MS-Off Ver
    Office 2013
    Posts
    5

    Formatting, matching, and aggregating different datasets

    I have a number of datasets by year that I would like to aggregate into a defined time-series format. The defined format is below (table 2).

    However, I have two problems.

    (1) The source datasets are formatted like the source data table below (table 1). Is there any way to compile and format these data without doing so manually? There are over 800 rows in five datasets.

    (2) Across the years/source datasets, the number of organisations are different (for eg, there are 956 organisations in 2014, 892 in 2015, 923 in 2016, etc.). The majority of the organisations are the same, but the datasets add or remove different ones based on whether the organisations are active. How do I construct an Index-Match formula to account for this?

    Specifically, I want to have all the organisations that appear across the years/datasets included in the aggregated data, with the correct matching data for the years they are present and NA for when they are not.

    Thanks in advance for any help on this.

    Table 1 - Individual source data for specific year

    Area name Area code Organisation name Organisation code Female 0-4 Female 5-14 Female 15-24 ... Male 0-4 ...
    Area 1 001 Organisation 1 AAA X1 X2 X3 ... Y1 ...
    ...Area N ...00N ...Organisation M ...MMM X1 X2 X3 ... Y1 ...


    Table 2 - Intended-format data for all years

    Area name Area code Organisation name Organisation code Gender Age group 2014 2015 2016 ...
    Area 1 001 Organisation 1 AAA Female 0-4
    Area 1 001 Organisation 1 AAA Female 5-14
    Area 1 001 Organisation 1 AAA Female 15-24
    Area 1 001 Organisation 1 AAA Female ...
    Area 1 001 Organisation 1 AAA Male 0-4
    Area 1 001 Organisation 1 AAA Male ...
    Area 2 002 Organisation 2 BBB Female 0-4
    Area 2 002 Organisation 2 BBB Female 5-14
    ...Area N ...00N ...Organisation M ...MMM Female ...

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Formatting, matching, and aggregating different datasets

    Hi
    as you have posted the same question in the CS forum, I will close this thread.
    Last edited by Pepe Le Mokko; 02-05-2019 at 07:11 AM.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Aggregating Data
    By dc4000 in forum Excel General
    Replies: 3
    Last Post: 02-12-2018, 12:58 PM
  2. [SOLVED] Macro to combine data from two datasets based on matching strings
    By mfd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2014, 03:23 PM
  3. Replies: 8
    Last Post: 11-09-2013, 04:50 PM
  4. Replies: 0
    Last Post: 10-11-2013, 05:24 AM
  5. Matching IDs from 3 datasets
    By tripvanwinkel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-25-2011, 12:47 PM
  6. Aggregating Cases
    By Toby2010 in forum Excel General
    Replies: 9
    Last Post: 01-27-2011, 04:34 PM
  7. [SOLVED] Aggregating data
    By JVLin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2005, 12:06 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