Categorizing and adding data with multiple conditions

Tyler361

New Member
Joined
May 21, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hello all,

I am looking for a formula(s) that can translate data in the customer subscription log into the monthly recurring revenue (MRR) schedule. The MRR schedule represents the desired outcome, but is all hardcoded. What formulas can I use? Grateful in advance for any pointers in the right direction!

Additional context/definitions:
The log tracks customers on a monthly subscription and their payment activity each month. The monthly recurring revenue (MRR) schedule breaks revenue into different categories, listed and defined below. MRR is just a fancy definition for what customers pay each month.

Retained MRR: Customers that pay the same amount as the month prior. Ex: Customer #1 provides retained MRR after Jan-22.
New Sales MRR: New customers, paid nothing in the prior month. Ex: Customer #2 is new sales MRR in Feb-22.
Expansion MRR: The positive difference from an existing customer's payment from the prior month. Ex: Customer #5 upgrades their subscription in Jun-22 and Sep-22.
Contraction MRR: The negative difference from an existing customer's payment from the prior month. Ex: Customer #4 downgrades their subscription in Jun-22 and Aug-22.
Churned MRR: Customers that paid in the prior month, but not in the current month. Ex: Customer #3 canceled their subscription at the end of May-22, making them churned as of Jun-22.


MRR.xlsx
ABCDEFGHIJKLM
1Customer Subscription Log
2Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
3Customer #1500.00500.00500.00500.00500.00500.00500.00500.00500.00500.00500.00500.00
4Customer #2250.00250.00250.00250.00250.00250.00250.00250.00250.00250.00250.00
5Customer #3 300.00300.00300.00300.00
6Customer #4400.00400.00300.00300.00200.00200.00100.00100.00100.00
7Customer #5100.00100.00100.00400.00400.00400.00600.00600.00600.00600.00
8
9Monthly Recurring Revenue (MRR) Schedule
10Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
11Retained MRR$0.00$500.00$1,050.00$1,150.00$1,550.00$1,150.00$1,450.00$1,350.00$1,350.00$1,450.00$1,450.00$1,450.00
12New Sales MRR$500.00$550.00$100.00$400.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
13Expansion MRR$0.00$0.00$0.00$0.00$0.00$300.00$0.00$0.00$200.00$0.00$0.00$0.00
14Contraction MRR$0.00$0.00$0.00$0.00$0.00-$100.00$0.00-$100.00$0.00-$100.00$0.00$0.00
15Churned MRR$0.00$0.00$0.00$0.00$0.00-$300.00$0.00$0.00$0.00$0.00$0.00$0.00
16Total MRR$500.00$1,050.00$1,150.00$1,550.00$1,550.00$1,450.00$1,450.00$1,350.00$1,550.00$1,450.00$1,450.00$1,450.00
Customer Log
Cells with Data Validation
CellAllowCriteria
B3:M7Whole number>=0
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I like to know, On Jan 22, Customer #1. 500 is suppose to be in "Retained Sales MRR", right ?
 
Upvote 0
Not terribly elegant (I'm sure there's a better way) but this seems to give you what you want.

Book1
ABCDEFGHIJKLM
1Customer Subscription Log
2Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
3Customer #1$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00
4Customer #2$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00
5Customer #3 $300.00$300.00$300.00$300.00
6Customer #4$400.00$400.00$300.00$300.00$200.00$200.00$100.00$100.00$100.00
7Customer #5$100.00$100.00$100.00$400.00$400.00$400.00$600.00$600.00$600.00$600.00
8
9Monthly Recurring Revenue (MRR) Schedule
10Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
11Retained MRR$500.00$1,050.00$1,150.00$1,550.00$1,150.00$1,450.00$1,350.00$1,350.00$1,450.00$1,450.00$1,450.00
12New Sales MRR$500.00$550.00$100.00$400.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
13Expansion MRR$0.00$0.00$0.00$0.00$300.00$0.00$0.00$200.00$0.00$0.00$0.00
14Contraction MRR$0.00$0.00$0.00$0.00-$100.00$0.00-$100.00$0.00-$100.00$0.00$0.00
15Churned MRR$0.00$0.00$0.00$0.00-$300.00$0.00$0.00$0.00$0.00$0.00$0.00
16Total MRR$500.00$1,050.00$1,150.00$1,550.00$1,550.00$1,450.00$1,450.00$1,350.00$1,550.00$1,450.00$1,450.00$1,450.00
Sheet1
Cell Formulas
RangeFormula
C11:M11C11=SUM(IF(C3:C7=B3:B7,B3:B7,0))+SUM(IF(B3:B7>C3:C7,C3:C7,0))+SUM(IF(C3:C7>B3:B7,B3:B7,0))
C12:M12C12=SUM(IF(ISBLANK(B3:B7),C3:C7,0))
C13:M13C13=SUM(IF(B3:B7<>"",IF(C3:C7>B3:B7,C3:C7-B3:B7,0)))
C14:M14C14=SUM(IF(C3:C7<>"",IF(C3:C7<B3:B7,(B3:B7-C3:C7)*-1,0)))
C15:M15C15=SUM(IF(B3:B7<>"",IF(C3:C7="",(B3:B7)*-1,0)))
B12B12=SUM(B3:B7)
B16:M16B16=SUM(IF(B11:B15>0,B11:B15,0))
 
Upvote 1
Solution
I like to know, On Jan 22, Customer #1. 500 is suppose to be in "Retained Sales MRR", right ?
Great question! It depends - since this is the beginning of the dataset I have recognized it as "New Sales MRR", but if they could also be "Retained MRR" if they were a customer in Dec 19 (in this case we don't know). The data in the first month of the MRR schedule is less important than every month thereafter, if that makes sense!
 
Upvote 0
Not terribly elegant (I'm sure there's a better way) but this seems to give you what you want.

Book1
ABCDEFGHIJKLM
1Customer Subscription Log
2Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
3Customer #1$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00
4Customer #2$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00
5Customer #3 $300.00$300.00$300.00$300.00
6Customer #4$400.00$400.00$300.00$300.00$200.00$200.00$100.00$100.00$100.00
7Customer #5$100.00$100.00$100.00$400.00$400.00$400.00$600.00$600.00$600.00$600.00
8
9Monthly Recurring Revenue (MRR) Schedule
10Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
11Retained MRR$500.00$1,050.00$1,150.00$1,550.00$1,150.00$1,450.00$1,350.00$1,350.00$1,450.00$1,450.00$1,450.00
12New Sales MRR$500.00$550.00$100.00$400.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
13Expansion MRR$0.00$0.00$0.00$0.00$300.00$0.00$0.00$200.00$0.00$0.00$0.00
14Contraction MRR$0.00$0.00$0.00$0.00-$100.00$0.00-$100.00$0.00-$100.00$0.00$0.00
15Churned MRR$0.00$0.00$0.00$0.00-$300.00$0.00$0.00$0.00$0.00$0.00$0.00
16Total MRR$500.00$1,050.00$1,150.00$1,550.00$1,550.00$1,450.00$1,450.00$1,350.00$1,550.00$1,450.00$1,450.00$1,450.00
Sheet1
Cell Formulas
RangeFormula
C11:M11C11=SUM(IF(C3:C7=B3:B7,B3:B7,0))+SUM(IF(B3:B7>C3:C7,C3:C7,0))+SUM(IF(C3:C7>B3:B7,B3:B7,0))
C12:M12C12=SUM(IF(ISBLANK(B3:B7),C3:C7,0))
C13:M13C13=SUM(IF(B3:B7<>"",IF(C3:C7>B3:B7,C3:C7-B3:B7,0)))
C14:M14C14=SUM(IF(C3:C7<>"",IF(C3:C7<B3:B7,(B3:B7-C3:C7)*-1,0)))
C15:M15C15=SUM(IF(B3:B7<>"",IF(C3:C7="",(B3:B7)*-1,0)))
B12B12=SUM(B3:B7)
B16:M16B16=SUM(IF(B11:B15>0,B11:B15,0))
Thank you so much for helping here, it defiantly gets the job done! Going to hold off on marking this as "answered", only out of curiosity for any other approaches, but
Not terribly elegant (I'm sure there's a better way) but this seems to give you what you want.

Book1
ABCDEFGHIJKLM
1Customer Subscription Log
2Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
3Customer #1$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00$500.00
4Customer #2$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00$250.00
5Customer #3 $300.00$300.00$300.00$300.00
6Customer #4$400.00$400.00$300.00$300.00$200.00$200.00$100.00$100.00$100.00
7Customer #5$100.00$100.00$100.00$400.00$400.00$400.00$600.00$600.00$600.00$600.00
8
9Monthly Recurring Revenue (MRR) Schedule
10Jan 22Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22
11Retained MRR$500.00$1,050.00$1,150.00$1,550.00$1,150.00$1,450.00$1,350.00$1,350.00$1,450.00$1,450.00$1,450.00
12New Sales MRR$500.00$550.00$100.00$400.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00$0.00
13Expansion MRR$0.00$0.00$0.00$0.00$300.00$0.00$0.00$200.00$0.00$0.00$0.00
14Contraction MRR$0.00$0.00$0.00$0.00-$100.00$0.00-$100.00$0.00-$100.00$0.00$0.00
15Churned MRR$0.00$0.00$0.00$0.00-$300.00$0.00$0.00$0.00$0.00$0.00$0.00
16Total MRR$500.00$1,050.00$1,150.00$1,550.00$1,550.00$1,450.00$1,450.00$1,350.00$1,550.00$1,450.00$1,450.00$1,450.00
Sheet1
Cell Formulas
RangeFormula
C11:M11C11=SUM(IF(C3:C7=B3:B7,B3:B7,0))+SUM(IF(B3:B7>C3:C7,C3:C7,0))+SUM(IF(C3:C7>B3:B7,B3:B7,0))
C12:M12C12=SUM(IF(ISBLANK(B3:B7),C3:C7,0))
C13:M13C13=SUM(IF(B3:B7<>"",IF(C3:C7>B3:B7,C3:C7-B3:B7,0)))
C14:M14C14=SUM(IF(C3:C7<>"",IF(C3:C7<B3:B7,(B3:B7-C3:C7)*-1,0)))
C15:M15C15=SUM(IF(B3:B7<>"",IF(C3:C7="",(B3:B7)*-1,0)))
B12B12=SUM(B3:B7)
B16:M16B16=SUM(IF(B11:B15>0,B11:B15,0))
Thanks so much - it defiantly gets the job done! I've marked this as answered but am curious to see all the other approaches as well (if any). Appreciate the help again.
 
Upvote 0

Forum statistics

Threads
1,215,085
Messages
6,123,030
Members
449,092
Latest member
ikke

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