add costs every nth month

deckerp

Active Member
Joined
Feb 12, 2010
Messages
319
Office Version
  1. 365
Hi, I have a table where I would like to add amounts every x dates.

every service has a different start and specific end date:

Service 1 > 300 € > 4 x per year > Start 15th June 2020 > unlimited (thus 31.12.2099) ..... should be Jun, Sep, Dec, Mar
Service 2 > 250 € > 2 x per year > Start 15th June 2020 > End 14th June 2020 .... should be Jun, Dec
Service 3 > 250 € > 1 x per year > Start 1st September 2020 > End 30th August 2025 .... every 1st of Sep
Service 4 > 1500 € > 6 x per year > Start 1st January 2023 > no End date .... should be Jan, Mar, May, Jul, Sep, Nov
Service 5 > 120 € > 12 x per year > Start 1st of August 2022 > End 30th of August 2025 .... should be every month

the calendar is monthly or yearly
How can I know that the fee should be applied in a specific month (eg Nov 2020)?
How can I find out how the total costs as per service fee in a calendar year?

Many thanks for your help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hello, I would really appreciate some help on this. (still no solution found)
 
Upvote 0
See if this layout works for you, it might encourage some others to respond to you as well.
I assume you don't want to charge a fee in month 1 (start date month)

20220804 Phase Amount deckerp.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMAN
1ServiceStartEndFrequencyMthsAmtJun-20Jul-20Aug-20Sep-20Oct-20Nov-20Dec-20Jan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22Jan-23Feb-23Mar-23
2115/06/20204Jun,Sep,Dec,Mar30000030000300003000030000300003000030000300003000030000300
3215/06/202014/06/20202Jun,Dec2500000000000000000000000000000000000
431/09/202030/08/20251Sep25000000000000000025000000000000250000000
541/01/20236Jan,Mar,May,Jul,Sep,Nov15000000000000000000000000000000000015001500
651/08/202230/08/202512120000000000000000000000000000120120120120120120120
Sheet1
Cell Formulas
RangeFormula
G2G2=IF( OR(G$1<$B2,AND($C2<>"",G$1>$C2),EOMONTH($B2,0)=EOMONTH(G$1,0)), 0, IF(MOD(DATEDIF(EOMONTH($B2,0),EOMONTH(G$1,0),"m"),(12/$D2))=0, $F2, 0))
H2:AN2,G3:AN6H2=IF(OR(H$1<$B2,AND($C2<>"",H$1>$C2),EOMONTH($B2,0)=EOMONTH(H$1,0)),0,IF(MOD(DATEDIF(EOMONTH($B2,0),EOMONTH(H$1,0),"m"),(12/$D2))=0,$F2,0))
 
Upvote 0
See if this layout works for you, it might encourage some others to respond to you as well.
I assume you don't want to charge a fee in month 1 (start date month)

20220804 Phase Amount deckerp.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMAN
1ServiceStartEndFrequencyMthsAmtJun-20Jul-20Aug-20Sep-20Oct-20Nov-20Dec-20Jan-21Feb-21Mar-21Apr-21May-21Jun-21Jul-21Aug-21Sep-21Oct-21Nov-21Dec-21Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22Jan-23Feb-23Mar-23
2115/06/20204Jun,Sep,Dec,Mar30000030000300003000030000300003000030000300003000030000300
3215/06/202014/06/20202Jun,Dec2500000000000000000000000000000000000
431/09/202030/08/20251Sep25000000000000000025000000000000250000000
541/01/20236Jan,Mar,May,Jul,Sep,Nov15000000000000000000000000000000000015001500
651/08/202230/08/202512120000000000000000000000000000120120120120120120120
Sheet1
Cell Formulas
RangeFormula
G2G2=IF( OR(G$1<$B2,AND($C2<>"",G$1>$C2),EOMONTH($B2,0)=EOMONTH(G$1,0)), 0, IF(MOD(DATEDIF(EOMONTH($B2,0),EOMONTH(G$1,0),"m"),(12/$D2))=0, $F2, 0))
H2:AN2,G3:AN6H2=IF(OR(H$1<$B2,AND($C2<>"",H$1>$C2),EOMONTH($B2,0)=EOMONTH(H$1,0)),0,IF(MOD(DATEDIF(EOMONTH($B2,0),EOMONTH(H$1,0),"m"),(12/$D2))=0,$F2,0))

Many thanks; How would the formular need to be adjusted to respect the beginning month, too?
 
Upvote 0
=IF(
OR(EOMONTH(G$1;0)<$B2;AND($C2<>"";G$1>$C2));
0;
IF(MOD(DATEDIF(EOMONTH($B2;0);EOMONTH(G$1;0);"m");(12/$D2))=0;
$F2;
0))
this works for me
again - much appreciated. Have a great day :-)
 
Upvote 0
I wrote to early - it does not work. Please look again into the formula. Many thanks
 
Upvote 0
Try this :

Cell Formulas
RangeFormula
G1:AV1G1=EOMONTH(F1,1)
F2:AV6F2=IF(AND(F$1>=$B2,OR(F$1<=$C2,$C2="")),(MOD(DATEDIF($B2,F$1,"m")+(12/$D2),(12/$D2))=0)*$E2,0)
A3:A6A3=A2+1
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

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