Excel - Counting monthly payments according to fiscal year - S.O.S

bjq

New Member
Joined
May 1, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'd really appreciate some help with some teething issues I have with my formula.

Scenario:

I have a list of customers that have a direct debit set-up for every month and each have different starting and ending times spanning multiple years. I'm trying to count the number of months that payment is received from each customer. FYI, each customer has a different start date as they begin their debit differently from one another and the debit begins 1 month from when they sign-up. I also know how much they have paid in total, because they sign-up for a fixed amount of time in advance (years).


I've tried using this formula:


=SUMPRODUCT(--(EOMONTH(DATE(F$1,8,1)-1,ROW($1:$12))>=$B2), --(EOMONTH(DATE(F$1,8,1)-1,ROW($1:$12))<=$C2))

but it gives me 1 extra month at the beginning of Fiscal Year 2017, i.e., for customer 1#, there should only be 24 months in total and for customer 2#, 47.

Customer No.Start DateEnd DateTotal PaymentTotal
Months
20172018201920202021
2022​
123/06/201823/06/2020£5,616.00
25
2
12​
11​
0​
0​
0​
207/09/201731/08/2021£7,500.00
48
11
12​
12​
12​
1​
0​
Fiscal Year StartFiscal Year End
FY 201701/08/201701/08/2018
FY 201801/08/201801/08/2019
FY 201901/08/201901/08/2020
FY 202001/08/202001/08/2021
FY 202101/08/202101/08/2022


Can anyone help? Pretty please???

Best,

BJ
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi, welcome to the forum!

You could give this a try.

Book1
ABCDEFGHIJK
1Customer No.Start DateEnd DateTotal PaymentTotal Month201720182019202020212022
2123/06/201823/06/202056162411211000
3207/09/201731/08/20217500471012121210
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=SUM(F2:K2)
F2:K3F2=IFERROR(DATEDIF(MAX(EDATE($B2,1),DATE(F$1,8,1)),MIN($C2,DATE(F$1+1,7,31)),"m")+1,0)
 
Upvote 0
Hi, welcome to the forum!

You could give this a try.

Book1
ABCDEFGHIJK
1Customer No.Start DateEnd DateTotal PaymentTotal Month201720182019202020212022
2123/06/201823/06/202056162411211000
3207/09/201731/08/20217500471012121210
Sheet1
Cell Formulas
RangeFormula
E2:E3E2=SUM(F2:K2)
F2:K3F2=IFERROR(DATEDIF(MAX(EDATE($B2,1),DATE(F$1,8,1)),MIN($C2,DATE(F$1+1,7,31)),"m")+1,0)

By gosh, I think you've cracked it! Thank you so much, though - really appreciate it. And it's great to be a part of this forum :)
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,020
Members
448,938
Latest member
Aaliya13

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