Formula to sum based on multiple criteria -For subscription revenues

tarinann

New Member
Joined
Oct 30, 2019
Messages
9
Hello Excel Community,

I was wondering if any of the amazing Excel masterminds can help me with a fomula based on several criteria.

First I have a table with date which includes a customer ID, Customer Name, Type of Purchase, Date of Purchase, Start Date and End Dates of Purchase, the amount of the order and the current amount (meaning the total amount of the purchase if it is not expired) as of a particular date in time, which can be changed as needed.

Below is my sample data to be used for the formula I am trying to create.


As of Date 10/30/2019
Customer IDCustomer NameType of PurchaseDate of PurchaseStart DateEnd DateAmountCurrent Amount
1Jane DoeNew1/1/20181/1/201812/31/2018 500.00 -
1Jane DoeRenewal1/1/20191/1/201912/31/2019 500.00 500.00
2John BarryNew1/1/20191/1/201912/31/2019 1,000.00 1,000.00
2John BarryExpand1/1/20191/1/201912/31/2019 500.00 500.00
3Jack SmithNew1/1/20181/1/201812/31/2018 250.00
3Jack SmithExpand1/1/20181/1/201812/31/2018 600.00
4Sue NelsonNew1/1/20171/1/201712/31/2017 200.00
4Sue NelsonRenewal1/1/20181/1/201812/31/2018 200.00
4Sue NelsonRenewal1/1/20191/1/201912/31/2019 200.00 200.00
5Mike PlainNew1/1/20181/1/201812/31/2018 875.00


Below is my desired output. I am looking for a formula that will return the current column from the data in the table above. I do not have VBA skills, so a formula solution is preferred, if possible.

Status201720182019
New 200 1,625 1,000
Current 200 2,225 1,000
Retention100%137%100%

<tbody>
</tbody>



The new column is fairly easy, as I can just type a formula to find type new between a date range and get the result.

The current column is where I am having difficulties, as I would like the sum of the current amount for all customers that were new between the original date range. The line of the original date range is not current, but expand and/or renewal lines in new date ranges contain the current amount.


Thanks in advance for any guidance/help!!

Tammy


<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi Sam,

Thanks. The required output is listed in the second table above. I am trying to calculate the results in the row that shows “current” amounts under each column year.

Basically, I want to sum the “current” column for all of the rows for customers who had a type of “new” between the dates in the start and end date columns.

I hope this helps.
 
Upvote 0
SpillerBD,

Thanks. That is where I started but I want to sum the rows for all customer rows that had NEW in a row that corresponds to the date range in the start and end date columns. With SUMIFS, I would only get the current amount for the single row that contained the type NEW and the start and end dates. I want all rows for the current column for any customer who had new in the date range filter.
 
Upvote 0
Sam,

Great question. Actually the $2,225 should be $500, which the sum of the current amount column for customers that had a type of "new" between the start date of 01/01/2018 and 12/31/2018. See the updated desired output below.

Status201720182019
New 200 1,625 1,000
Current 200 500 1,000
Retention100%31%100%

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

Jane Doe had a New purchase of $500 in this time frame. Her "current" amount is $500
Jack Smith had a New purchase of $250 in this time frame, but his current is zero
Mike Plain had a New purchase of $875.00 in this time frame, but his current is zero
 
Upvote 0
Thanks for all of the suggestions. I figured out a way to accomplish this with a sumproduct function and table.
 
Upvote 0
Could you please post your findings and solutions here. would be helpful for me. thanks.

I tried SUMPRODUCT from my end too, it dint work for me.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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