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.
[TABLE="width: 811"]
<tbody>[TR]
[TD]As of Date [/TD]
[TD="align: right"]10/30/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer ID[/TD]
[TD]Customer Name[/TD]
[TD]Type of Purchase[/TD]
[TD]Date of Purchase[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Amount[/TD]
[TD]Current Amount[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Jane Doe[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 500.00[/TD]
[TD] -[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Jane Doe[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 500.00[/TD]
[TD] 500.00[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]John Barry[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 1,000.00[/TD]
[TD] 1,000.00[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]John Barry[/TD]
[TD]Expand[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 500.00[/TD]
[TD] 500.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Jack Smith[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 250.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Jack Smith[/TD]
[TD]Expand[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 600.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD] 200.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 200.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 200.00[/TD]
[TD] 200.00[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Mike Plain[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 875.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
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.
[TABLE="width: 440"]
<tbody>[TR]
[TD]Status[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]2019[/TD]
[/TR]
[TR]
[TD]New[/TD]
[TD] 200[/TD]
[TD] 1,625[/TD]
[TD] 1,000[/TD]
[/TR]
[TR]
[TD]Current[/TD]
[TD] 200[/TD]
[TD] 2,225[/TD]
[TD] 1,000[/TD]
[/TR]
[TR]
[TD]Retention[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]137%[/TD]
[TD="align: right"]100%[/TD]
[/TR]
</tbody>[/TABLE]
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
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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.
[TABLE="width: 811"]
<tbody>[TR]
[TD]As of Date [/TD]
[TD="align: right"]10/30/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Customer ID[/TD]
[TD]Customer Name[/TD]
[TD]Type of Purchase[/TD]
[TD]Date of Purchase[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]Amount[/TD]
[TD]Current Amount[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Jane Doe[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 500.00[/TD]
[TD] -[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD]Jane Doe[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 500.00[/TD]
[TD] 500.00[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]John Barry[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 1,000.00[/TD]
[TD] 1,000.00[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]John Barry[/TD]
[TD]Expand[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 500.00[/TD]
[TD] 500.00[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Jack Smith[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 250.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD]Jack Smith[/TD]
[TD]Expand[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 600.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD] 200.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 200.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Sue Nelson[/TD]
[TD]Renewal[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]12/31/2019[/TD]
[TD] 200.00[/TD]
[TD] 200.00[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Mike Plain[/TD]
[TD]New[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]1/1/2018[/TD]
[TD="align: right"]12/31/2018[/TD]
[TD] 875.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
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.
[TABLE="width: 440"]
<tbody>[TR]
[TD]Status[/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]2019[/TD]
[/TR]
[TR]
[TD]New[/TD]
[TD] 200[/TD]
[TD] 1,625[/TD]
[TD] 1,000[/TD]
[/TR]
[TR]
[TD]Current[/TD]
[TD] 200[/TD]
[TD] 2,225[/TD]
[TD] 1,000[/TD]
[/TR]
[TR]
[TD]Retention[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]137%[/TD]
[TD="align: right"]100%[/TD]
[/TR]
</tbody>[/TABLE]
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
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]