+ Reply to Thread
Results 1 to 4 of 4

Aggregating Data

  1. #1
    Registered User
    Join Date
    02-08-2018
    Location
    Brighton,England
    MS-Off Ver
    2016
    Posts
    9

    Aggregating Data

    Please find attached working file.

    I am extracting data which exports in the following format with particular attention on columns C (*Category / Geo / Sector Name) & col E (Security ISIN). Based on the attached extract I want to create a summary table aggregating every line item into their respective bucket (column K). (This is not my question however as this will be a simple vlook up and sumif).

    My question is this – how do I group all entries within column C into their respective bucket if there are no identifiers from column E (exception ISIN for bonds). Note the entries will consistently follow the same format and naming convention. For entries that have “—“ within column E all I am working on is the description in column C which is my issue. I would like to bucket these items

    1)If we tackle “Cash” initially then the following entries I want to allocate to the “Cash” bucket ( from column C4:C8). Note going forward there will be additional currencies which will need to be added so need to manage this.

    2) Bonds – all bonds are given an ISIN so perhaps a rule/formula that IF column E has an ISIN then allocate to the “Bonds” bucket

    3) CDS – for these entries there are no identifiers so again I am only working on the assumption these entries with follow the naming convention of “CDSW……………………” – so IF column C begins with these x4 characters then allocate to CDS bucket (make sense?) (the bucket should sum to -2.32)

    Similar pattern for the remaining buckets;

    FFX – will begin with EUR FORWARD CURRENCY (the currency can change i.e. EUR may change to USD OR GBP or any other currency) but not the name FORWARD CURRENCY CONTRACT after will not

    Futures – will consistently begin with FUT MMM YY

    IRS - IRSW

    Based on the above, the expected results for each bucket are provided in column L. Can you advise what is best to achieve this (i.e. mapping table?)


    Note also the following;
     The range within column C may be greater than or less than what is given
     If going forward I need to add additional buckets – allow accordingly
     From source I am unable to generate the identifier which wont change for the foreseeable future
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Aggregating Data

    I deleted quite a few rows, to facilitate checking.

    You did not provide criteria for the category "Fund", so it has been classified (for now, at least) as "Bond" as it has a 12 digit ISIN number.

    Try this in G4, copied down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and then totals supplied by:
    =SUMIF(G:G,K8,F:F)

    in M4, copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-08-2018
    Location
    Brighton,England
    MS-Off Ver
    2016
    Posts
    9

    Re: Aggregating Data

    Great, thanlk you very much. Works perfectly (almost) - if the description eg EUROPEAN INVESTMENT BANK BNDS then the formula is classifying this as cash Euro - how can I amend please?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Aggregating Data

    Same formula... just in a different order...
    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)

Similar Threads

  1. Aggregating Monthly Data
    By willie828 in forum Excel General
    Replies: 3
    Last Post: 11-30-2016, 04:54 PM
  2. Aggregating Monthly Data
    By willie828 in forum Excel General
    Replies: 1
    Last Post: 11-30-2016, 02:39 PM
  3. Aggregating data
    By brianknie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2013, 01:18 PM
  4. Need help aggregating data
    By glazedfaith in forum Excel General
    Replies: 6
    Last Post: 11-30-2010, 01:29 PM
  5. Macro For Aggregating Data
    By research09 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2009, 11:32 AM
  6. Aggregating data
    By pilotdata in forum Excel General
    Replies: 6
    Last Post: 11-09-2005, 10:35 AM
  7. [SOLVED] Aggregating data
    By JVLin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2005, 12:06 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