+ Reply to Thread
Results 1 to 3 of 3

Cohort Analysis: Summing Quartiles of Data with Specific Condiitons

  1. #1
    Registered User
    Join Date
    07-15-2011
    Location
    USA
    MS-Off Ver
    365
    Posts
    7

    Cohort Analysis: Summing Quartiles of Data with Specific Condiitons

    Hi,

    I have a large data set of monthly customer revenue from January 2010 - July 2015 along with a column indicating the indexed month and quarter each customer started in (e.g. if a customer first appeared in January 2010 their indexed starting month would be 1 and quarter would also be 1; if a customer started in April 2010 their month would be 4 and their quarter would be 2).

    I'm trying to analyze quarterly cohorts of this customer data, so that I can gain insights into the behavior of each quarterly cohort over time. Cohort definition: the 1st cohort would be all of the customers that started in the first indexed quarter of the data set (i.e. customers starting in Jan, Feb, or Mar 2010); the second cohort would include customers starting in April, May, or June 2010, etc. I'm trying to calculate the total revenue, customer count, and average revenue per customer for each cohort on a monthly basis over time. In the attached file, I've done that analysis at the bottom.

    What I'm having trouble doing is performing this same analysis when trying to segment each cohort into quartiles. For instance, I'd like to be able to to track the total revenue attributable to the top quartile (top 25% of customers by revenue) for a specific cohort over time. I attempted to do this in row 1711; formula: =SUMIFS(E$2:E$1697,$B$2:$B$1697,$D$1703,E$2:E$1697,">="&LARGE(E$2:E$1697,ROUND(0.25*E$1707,0))).

    However, the problem I'm having is that the large/round function doesn't discriminate by cohort; it looks at the top 25% of the customers regardless of which cohort they're in. For instance, if you sort the data set by October 2014 revenue (column BJ) and then by Indexed Starting Quarter (column B), you will see that there are 23 total customers from cohort 1 in column BJ, of which 14 are currently generating revenue. If you assume that the top quartile of the 14 customers is the largest 4 customers (rounding up from 3.5 to 4), then the top quartile of the first quarterly cohort in October 2014 should account for $3049.42 in revenue. However the formula is returning 0 in revenue.

    I'm not sure if how easy to decipher the above description is. It's probably easier to understand in the attached file. Would greatly appreciate any help in fixing the formula! Thank you!!!

    Cohort Quartile Analysis.xlsx

    Note: there is no confidential / identifiable data in the attachment

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Cohort Analysis: Summing Quartiles of Data with Specific Condiitons

    1 here sumproduct is better
    2 smth like large(E$2:E$1697, row($a$1:index($a$1:$a$1696,round(0,25*E$1707,0))))

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Cohort Analysis: Summing Quartiles of Data with Specific Condiitons

    Use this formula E1711 =SUMIFS(E$2:E$1697,$B$2:$B$1697,$D$1703,E$2:E$1697,">="&AGGREGATE(14,6,IF($B$2:$B$1697=$D$1703,E2:E1697),ROUND(0.25*E$1707,0))) with Ctrl+Shift+Enter and drag over columns.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by shukla.ankur281190; 09-10-2015 at 06:50 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

+ 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. [SOLVED] Summing specific data?
    By sh4d0w1ink in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2014, 02:37 PM
  2. [SOLVED] Summing up specific Data
    By Valeriakalinina in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-03-2014, 10:05 AM
  3. Counting if in certain cohort
    By sacha.dyer in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-13-2014, 08:42 AM
  4. [SOLVED] Displaying Specific Rows and Summing Values in a Column with Invalid Data
    By tbpugh866 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-04-2013, 11:58 AM
  5. [SOLVED] Looking for specif data in Excel File and summing totals for that specific data.
    By benmastro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2012, 08:18 PM
  6. Data Analysis Add-In not working on specific workbook only
    By Lauren_Oz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2007, 03:07 AM

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