+ Reply to Thread
Results 1 to 4 of 4

Using an array to sum the values of associated category

  1. #1
    Registered User
    Join Date
    09-14-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Using an array to sum the values of associated category

    Hey Folks,

    I'm having a problem trying to sum these values. I could easily do it using VBA, however I'd like to avoid it and use excel functions if possible.

    So I have the following tables that I'd like to essentially consolidate. This is of course, a gross over simplification of my table.

    Client_ID Purchase
    AA $10
    AB $20
    AC $30
    AD $40
    BA $50
    BB $60
    BC $70
    BD $80

    I also this:

    Client Client_ID
    A AA
    A AB
    A AC
    A AD
    B BA
    B BB
    B BC
    B BD

    What I would like to do is have this more consolidated table:

    Client Purchase
    A sum all client_ID purchases associated with A
    B sum all client_ID purchases associated with B

    I would like this table to lookup all associated client IDs associated with, say A, then find those IDs in the first table, and sum up the purchase amounts.

    Thanks folks!

  2. #2
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Using an array to sum the values of associated category

    Hi there, From the attached sheet can you supply expected results? This should be q simple SUMIF but feel there may be more to it

    KingDragon22 v1.xlsx

    Thanks
    Excel Guru in the making

    <----------If the question has been answered to your satisfication please click the Add Repuation star to the left

  3. #3
    Registered User
    Join Date
    09-14-2009
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Using an array to sum the values of associated category

    I've created the full effect of it.

    KingDragon22 v1.xlsx

    One thing to note is that the client ID's are not always in order. They may be scattered and be 100+ cells apart. So the 3rd sheet "Client Purchases" needs to be find all Client IDs that are associated with the Client and sum all the purchases associated with the Client IDs that are associated with the client.

    Thanks!

  4. #4
    Valued Forum Contributor TheCman81's Avatar
    Join Date
    11-06-2012
    Location
    Edinburgh, UK
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    346

    Re: Using an array to sum the values of associated category

    Sorry for the delay.

    I've done 2 formulas you can choose from.

    Formula1 - This is used with a helper column in Client_ID Purchases tab

    Formula2 - Doesn't use a helper column, this is an array formula and will need to be entered with Ctrl Shift Enter {} you should see these curly brackets if you've done it correctly (DONT manually type these brackets in)


    KingDragon22 v2.xlsx

+ 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. How to Chart values for Division vs Category and Sub-Category?
    By rahulgk in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-11-2013, 06:33 AM
  2. array formula to return sum of values based on date and category code
    By usmc0331 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-18-2013, 08:24 PM
  3. [SOLVED] Return Category based on Keywords in a cell from array
    By nazsha07 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2012, 12:25 AM
  4. [SOLVED] Productsum: Highest Frequency Category, Specific Main Category, Frequency of Category
    By T86157 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2012, 12:43 PM
  5. summing an array by product category
    By BLW in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-18-2005, 07: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