Cohort Waterfall by account count

robbied13

New Member
Joined
Apr 18, 2011
Messages
25
I am trying to build out a waterfall that will count how many customers we have based on what time they became a customer. The plan is to count the account IDs if they are new business and remove them if they have been cancelled. The issue is an account can have numerous opportunities marked as new business. As seen in the example of data provided on the left, account "1" has several new business opportunities but it should only be counted as 1 account. The table on the right is what I am trying to get to based on the data provided. Time is the x axis and the quarter the customer was new is the y axis. The values in the table are just hardcodes as I'm struggling with the equations. Any help would be much appreciated
Account ID (15)TypeDate of New Business (Cohort)Cancellation DateTime
1New BusinessQ1 FY17Q1 FY17Q2 FY17Q3 FY17Q4 FY17
1New BusinessQ1 FY17CohortQ1 FY174321
2New BusinessQ1 FY17Q2 FY17 221
3New BusinessQ1 FY17Q3 FY17 11
4New BusinessQ1 FY17Q4 FY17 3
5New BusinessQ2 FY174556
5New BusinessQ2 FY17
6New BusinessQ2 FY17
7New BusinessQ3 FY17
8New BusinessQ4 FY17
8New BusinessQ4 FY17
8New BusinessQ4 FY17
9New BusinessQ4 FY17
10New BusinessQ4 FY17
1CancellationQ1 FY17Q2 FY17
2CancellationQ1 FY17Q3 FY17
3CancellationQ1 FY17Q4 FY17
6CancellationQ2 FY17Q4 FY17

<colgroup><col><col><col><col><col span="6"></colgroup><tbody>
</tbody>




<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {font-family:Arial, sans-serif; mso-font-charset:0;}.xl66 {font-size:8.0pt; font-weight:700; font-family:Arial, sans-serif; mso-font-charset:0; text-align:center; vertical-align:middle; mso-protection:unlocked visible;}.xl67 {background:#FFF2CC; mso-pattern:black none;}.xl68 {border-top:none; border-right:none; border-bottom:.5pt solid windowtext; border-left:none; background:#FFF2CC; mso-pattern:black none;}--></style>
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Where I'm at so far for the Q1 FY17...

First, I did the following formula to get unique ids for account numbers. It spit out 10, which is the total number of accounts in the sample
=SUMPRODUCT(1/COUNTIF(A2:A19,A2:A19))

Second, i just have a countifs formula to get the number of new business lines that were for Q1 FY17, This gives me 5.
=COUNTIFS(B2:B19,Sheet2!A1,C2:C19,F3)

What I'm trying to figure out is how to combine the formulas so that Q1 FY17 is 4.
 
Upvote 0
Combining Unique Values with multiple criteria array formula

I had posted elsewhere but heres a new thread just due to the amount of work I've put in.

I think I'm really close on this but could use some help. I'm trying to get a rolling count of all of our accounts. The table is what I'm trying to fill in and the detail is below. For some reason the array formula works in every cell except the Q4 FY17 row and I can't understand why. I've copied the formula in here. It basically say count all new business that came in within the fiscal quarter less any accounts that cancelled within the same quarter.

I posted the screen shot as well as the detail in text if either are helpful

{=SUM(IF(($F$1=$B$2:$B$20)*($C$2:$C$20<=I$2)*($D$2:$D$20>=$H$2)*($G3=$D$2:$D$20), 1/COUNTIFS($B$2:$B$20, $F$1, $A$2:$A$20, $A$2:$A$20, $C$2:$C$20, "<="&I$2, $C$2:$C$20, ">="&$H$2, $D$2:$D$20, $G3)), 0)-SUM(IF(($F$2=$B$2:$B$20)*($C$2:$C$20<=I$2)*($D$2:$D$20>=$H$2)*($G3=$D$2:$D$20), 1/COUNTIFS($B$2:$B$20, $F$2, $A$2:$A$20, $A$2:$A$20, $C$2:$C$20, "<="&I$2, $C$2:$C$20, ">="&$H$2, $D$2:$D$20, $G3)), 0)}

qcz2f6.png


<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";}@page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; mso-footer-margin:.3in;}tr {mso-height-source:auto;}col {mso-width-source:auto;}br {mso-data-placement:same-cell;}td {padding-top:1px; padding-right:1px; padding-left:1px; mso-ignore:padding; color:windowtext; font-size:10.0pt; font-weight:400; font-style:normal; text-decoration:none; font-family:Arial; mso-generic-font-family:auto; mso-font-charset:0; mso-number-format:General; text-align:general; vertical-align:bottom; border:none; mso-background-source:auto; mso-pattern:auto; mso-protection:locked visible; white-space:nowrap; mso-rotate:0;}.xl65 {color:blue; font-size:8.0pt; font-family:Arial, sans-serif; mso-font-charset:0; text-align:right; vertical-align:middle; mso-protection:unlocked visible;}.xl66 {font-family:Arial, sans-serif; mso-font-charset:0;}.xl67 {font-size:8.0pt; font-weight:700; font-family:Arial, sans-serif; mso-font-charset:0; text-align:center; vertical-align:middle; mso-protection:unlocked visible;}.xl68 {background:#FFF2CC; mso-pattern:black none;}.xl69 {border-top:none; border-right:none; border-bottom:.5pt solid windowtext; border-left:none; background:#FFF2CC; mso-pattern:black none;}.xl70 {mso-number-format:"Short Date";}.xl71 {font-family:Arial, sans-serif; mso-font-charset:0; mso-number-format:"Short Date";}.xl72 {color:blue; font-size:8.0pt; font-family:Arial, sans-serif; mso-font-charset:0; text-align:right; vertical-align:middle; mso-protection:unlocked visible;}--></style>
New BusinessTime
Cancellation1/31/164/30/167/31/1610/31/161/31/17
CohortQ1 FY1704321
Q2 FY1700221
Q3 FY1700011
Q4 FY170#DIV/0!#DIV/0!#DIV/0!#DIV/0!

<!--StartFragment--> <colgroup><col width="87" span="7" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

Account ID (15)TypeDateDate of New Business (Cohort)
1New Business2/1/16Q1 FY17
1New Business2/1/16Q1 FY17
2New Business3/1/16Q1 FY17
3New Business3/1/16Q1 FY17
4New Business4/1/16Q1 FY17
5New Business5/1/16Q2 FY17
5New Business5/1/16Q2 FY17
6New Business6/1/16Q2 FY17
7New Business8/1/16Q3 FY17
8New Business11/1/16Q4 FY17
8New Business11/1/16Q4 FY17
8New Business11/1/16Q4 FY17
9New Business12/1/16Q4 FY17
10New Business1/1/16Q4 FY17
1Cancellation5/1/16Q1 FY17
2Cancellation8/1/16Q1 FY17
3Cancellation11/1/16Q1 FY17
6Cancellation12/1/16Q2 FY17
9Cancellation12/1/16Q4 FY17

<colgroup><col><col span="2"><col></colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0
Re: Combining Unique Values with multiple criteria array formula

Kindly don't start multiple threads on the same topic. Threads merged.
 
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top