Dynamic way of calculating billing values between two months

Akhalkalak

New Member
Joined
May 5, 2023
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a data set that contains clients' names, client ID, product ID, annual amount billed, client industry, and product purchase date (also the start date of billing). I'm trying to find a way to input any customer name and any two months (February - November, April-May, etc) and retrieve the total amount billed to said client in this time frame.

Customers vary by industry and each industry has a different billing frequency. I've used IFS to calculate the next billing period for every customer based on their industry and that industry's billing frequency. The purchases & billing all begins in 2014/15, and I am trying to find the amount billed between any two months in 2017 (all purchases are renewed every billing period).

I am a bit confused on how to approach the rest of this project from here on out and would really appreciate some feedback. Since there is a set amount billed annually, wouldn't it make sense that it doesn't really matter what specific day billing began for a customer? If a customer is billed quarterly, and say it began on 3/13/2014, how would I get to the 2017 values that would allow me to input any two months and customer name and get the correct $$$ billed?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
1683336041217.png
here is an example of the data
 
Upvote 0
Maybe something like this:
Book2
ABCDEFGHIJK
1Customer NameProduct IDCustomer ID IndustryAmount Billed Annual Product Purchase DateCustomerStart MonthEnd MonthYear
2Betasoloinfdw115rtOLX3928Commercial Property Mgmt 31,6696/8/2015PSF4581392015
3Betasoloinqbdt1041gOLX3928Commercial Property Mgmt $8,7565/15/2014Amount
4Betasoloinauuh99kdOLX3928Commercial Property Mgmt $43,2677/11/2014$ 102,932.00
5Betasoloinhtoi103feOLX3928Commercial Property Mgmt $71,1943/19/2014
6Betatechpmad110jyENC2036Higher Education61,1123/24/2014
7Betatechnhon112trENC2036Higher Education45,6945/7/2014
8Betatechahws101jqENC2036Higher Education52,4494/20/2014
9Betatechbod117zaENC2036Higher Education7,2941/25/2014
10Bioholdingbqkm112wmPSF4581Corporate37,1162/19/2015
11Bioholdingchot112rePSF4581Corporate62,20911/25/2014
12Bioholdingcwla115sbPSF4581Corporate37,4296/7/2015
13Bioholdingcljx118aiPSF4581Corporate65,5039/28/2015
14Bioplexniri120iaRUH5273Higher Education49,43412/24/2015
15Bioplexyjuu121etRUH5273Higher Education4,5157/9/2014
16Bioplexfrh1113zmRUH5273Higher Education39,85410/13/2014
17Bioplexxydvl 16tuRUH5273Higher Education74,78911/10/2015
18Bioplexa btb98wmRUH5273Higher Education81,72410/8/2015
19Bioplexxcgz111seRUH5273Higher Education4,1217/28/2015
20Bioplexorug114ewRUH5273Higher Education73,5742/25/2014
21Bioplexmwavl17znRUH5273Higher Education19,5142/7/2014
22Blackzimquwa109rnwMZV8706Retail52,0074/26/2015
23Blackzimcoqd112fmMZV8706Retail78,3652/24/2014
24Blackzimwuzql 17keMZV8706Retail97,2844/2/2015
25Blackzimtdds108zhMZV8706Retail77,7785/23/2015
26Blackzimhgdm108kvMZV8706Retail21,2702/2/2014
27Blackzimastc99xyMZV8706Retail60,7537/16/2014
28Cancityhsab119cqWR15364Higher Education94,1239/25/2014
29Cancityvde1116reWR15364Higher Education89,89411/12/2015
30Cancityjwqz98zkWR15364Higher Education23,47312/10/2015
31Cancityyxwb109nqWR15364Higher Education64,57312/26/2014
Sheet1
Cell Formulas
RangeFormula
H4H4=SUM(FILTER($E$2:$E$31,($C$2:$C$31=$H$2)*(MONTH($F$2:$F$31)>=$I$2)*(MONTH($F$2:$F$31)<=$J$2)*(YEAR($F$2:$F$31=$K$2))))
 
Upvote 0
Maybe something like this:
Book2
ABCDEFGHIJK
1Customer NameProduct IDCustomer ID IndustryAmount Billed Annual Product Purchase DateCustomerStart MonthEnd MonthYear
2Betasoloinfdw115rtOLX3928Commercial Property Mgmt 31,6696/8/2015PSF4581392015
3Betasoloinqbdt1041gOLX3928Commercial Property Mgmt $8,7565/15/2014Amount
4Betasoloinauuh99kdOLX3928Commercial Property Mgmt $43,2677/11/2014$ 102,932.00
5Betasoloinhtoi103feOLX3928Commercial Property Mgmt $71,1943/19/2014
6Betatechpmad110jyENC2036Higher Education61,1123/24/2014
7Betatechnhon112trENC2036Higher Education45,6945/7/2014
8Betatechahws101jqENC2036Higher Education52,4494/20/2014
9Betatechbod117zaENC2036Higher Education7,2941/25/2014
10Bioholdingbqkm112wmPSF4581Corporate37,1162/19/2015
11Bioholdingchot112rePSF4581Corporate62,20911/25/2014
12Bioholdingcwla115sbPSF4581Corporate37,4296/7/2015
13Bioholdingcljx118aiPSF4581Corporate65,5039/28/2015
14Bioplexniri120iaRUH5273Higher Education49,43412/24/2015
15Bioplexyjuu121etRUH5273Higher Education4,5157/9/2014
16Bioplexfrh1113zmRUH5273Higher Education39,85410/13/2014
17Bioplexxydvl 16tuRUH5273Higher Education74,78911/10/2015
18Bioplexa btb98wmRUH5273Higher Education81,72410/8/2015
19Bioplexxcgz111seRUH5273Higher Education4,1217/28/2015
20Bioplexorug114ewRUH5273Higher Education73,5742/25/2014
21Bioplexmwavl17znRUH5273Higher Education19,5142/7/2014
22Blackzimquwa109rnwMZV8706Retail52,0074/26/2015
23Blackzimcoqd112fmMZV8706Retail78,3652/24/2014
24Blackzimwuzql 17keMZV8706Retail97,2844/2/2015
25Blackzimtdds108zhMZV8706Retail77,7785/23/2015
26Blackzimhgdm108kvMZV8706Retail21,2702/2/2014
27Blackzimastc99xyMZV8706Retail60,7537/16/2014
28Cancityhsab119cqWR15364Higher Education94,1239/25/2014
29Cancityvde1116reWR15364Higher Education89,89411/12/2015
30Cancityjwqz98zkWR15364Higher Education23,47312/10/2015
31Cancityyxwb109nqWR15364Higher Education64,57312/26/2014
Sheet1
Cell Formulas
RangeFormula
H4H4=SUM(FILTER($E$2:$E$31,($C$2:$C$31=$H$2)*(MONTH($F$2:$F$31)>=$I$2)*(MONTH($F$2:$F$31)<=$J$2)*(YEAR($F$2:$F$31=$K$2))))
Sorry, here is info on the billing periods as well, left out an important piece
1683340681191.png
 
Upvote 0
So, what are your expected results?
Well, I first need to get 2017 billing. There is a 100% renewal rate assumption, so I see how you set up the way to find the total, but wouldn't I have to go into 2017 and factor in the billing frequency based on industry as well? I am just confused on how to approach this entire thing
 
Upvote 0
So, what are your expected results?
Also, how would I convert
Maybe something like this:
Book2
ABCDEFGHIJK
1Customer NameProduct IDCustomer ID IndustryAmount Billed Annual Product Purchase DateCustomerStart MonthEnd MonthYear
2Betasoloinfdw115rtOLX3928Commercial Property Mgmt 31,6696/8/2015PSF4581392015
3Betasoloinqbdt1041gOLX3928Commercial Property Mgmt $8,7565/15/2014Amount
4Betasoloinauuh99kdOLX3928Commercial Property Mgmt $43,2677/11/2014$ 102,932.00
5Betasoloinhtoi103feOLX3928Commercial Property Mgmt $71,1943/19/2014
6Betatechpmad110jyENC2036Higher Education61,1123/24/2014
7Betatechnhon112trENC2036Higher Education45,6945/7/2014
8Betatechahws101jqENC2036Higher Education52,4494/20/2014
9Betatechbod117zaENC2036Higher Education7,2941/25/2014
10Bioholdingbqkm112wmPSF4581Corporate37,1162/19/2015
11Bioholdingchot112rePSF4581Corporate62,20911/25/2014
12Bioholdingcwla115sbPSF4581Corporate37,4296/7/2015
13Bioholdingcljx118aiPSF4581Corporate65,5039/28/2015
14Bioplexniri120iaRUH5273Higher Education49,43412/24/2015
15Bioplexyjuu121etRUH5273Higher Education4,5157/9/2014
16Bioplexfrh1113zmRUH5273Higher Education39,85410/13/2014
17Bioplexxydvl 16tuRUH5273Higher Education74,78911/10/2015
18Bioplexa btb98wmRUH5273Higher Education81,72410/8/2015
19Bioplexxcgz111seRUH5273Higher Education4,1217/28/2015
20Bioplexorug114ewRUH5273Higher Education73,5742/25/2014
21Bioplexmwavl17znRUH5273Higher Education19,5142/7/2014
22Blackzimquwa109rnwMZV8706Retail52,0074/26/2015
23Blackzimcoqd112fmMZV8706Retail78,3652/24/2014
24Blackzimwuzql 17keMZV8706Retail97,2844/2/2015
25Blackzimtdds108zhMZV8706Retail77,7785/23/2015
26Blackzimhgdm108kvMZV8706Retail21,2702/2/2014
27Blackzimastc99xyMZV8706Retail60,7537/16/2014
28Cancityhsab119cqWR15364Higher Education94,1239/25/2014
29Cancityvde1116reWR15364Higher Education89,89411/12/2015
30Cancityjwqz98zkWR15364Higher Education23,47312/10/2015
31Cancityyxwb109nqWR15364Higher Education64,57312/26/2014
Sheet1
Cell Formulas
RangeFormula
H4H4=SUM(FILTER($E$2:$E$31,($C$2:$C$31=$H$2)*(MONTH($F$2:$F$31)>=$I$2)*(MONTH($F$2:$F$31)<=$J$2)*(YEAR($F$2:$F$31=$K$2))))
This also does not account for the billing periods, so when I enter a customer name, it just gives the annual amount
 
Upvote 0
So, if we take your customer Bioplex what answer do you want to see?
 
Upvote 0
So, if we take your customer Bioplex what answer do you want to see?
I want to be able to see the total $ amount that they will be billed based on any two month period in 2017. For example, if I input 2 for February and 7 for July, I want to see how much $$$ they will be billed. Every customer is only in one industry so there is one billing period per customer regardless of the different products they have purchased. I don't know how to factor that into this and I can't seem to be able to create a data table either.
 
Upvote 0
If we take the customer Bioplex for the months Feb & July.
They have 2 records each for Feb. & July which add up to $101,724. Is this the answer you want or would it be something else?
If this is not the correct answer, then what should it be (actual dollar amount) and how did you get it?
Book1
ABCDEF
1Customer NameProduct IDCustomer ID IndustryAmount Billed Annual Product Purchase Date
2Bioplexniri120iaRUH5273Higher Education$ 49,434.0012/24/2015
3Bioplexyjuu121etRUH5273Higher Education$ 4,515.007/9/2014
4Bioplexfrh1113zmRUH5273Higher Education$ 39,854.0010/13/2014
5Bioplexxydvl 16tuRUH5273Higher Education$ 74,789.0011/10/2015
6Bioplexa btb98wmRUH5273Higher Education$ 81,724.0010/8/2015
7Bioplexxcgz111seRUH5273Higher Education$ 4,121.007/28/2015
8Bioplexorug114ewRUH5273Higher Education$ 73,574.002/25/2014
9Bioplexmwavl17znRUH5273Higher Education$ 19,514.002/7/2014
10
11
12$ 101,724.00Sum of Feb & July
Sheet2
Cell Formulas
RangeFormula
E12E12=E3+E7+E8+E9
 
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