SumIF and CountIF with dates

sarahjane2019

New Member
Joined
Feb 13, 2019
Messages
1
Hi
I have dataset of customers who purchase plans each month. This data has approx.75,000 lines. This list consists of: customer, amount, month. I have created a pivot table with the following:

  • Rows: customers
  • Values: amount
  • Columns: month (15 months)
What I am trying to find out is the number of customers who are lost each month and the number of customers that are gained each month as well as the revenue gained and lost figures. I need to know the month they first purchased a plan, and the last plan they purchased. I have used SUMIFs and COUNTIFs however the numbers don't add up. What formulas would you use to work this out?


 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello, you could use a vlookup to see who the returning customers are. For example, I would copy/paste the February 2019 customers onto a new tab and remove duplicate customers names/ID's then vlookup the February 2019 customers to the list of all your previous employees. This will tell you who the returning customers and who the new customers are in February 2019.

If you need to know the month they first purchased a plan then add a column for earliest and oldest. You will have to reference the tab that has all of the customer data.

For earliest, use =IF(MIN(IF(range of all customers on the full list="first cell of customer on Feb list",range of dates on the full list))=0,"")
For oldest, use the same formula as above, but change MIN to MAX.

I hope this helps! Someone may be able to come up with a much simpler way, but I saw that you had no replies and wanted to help.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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