Hello experts,
I've got a IFS formula that spreads costs in different ways according to what is selected in a table next to the cells containing the formulae
(row 6 contains the first day of the month, row 7 the last day and 8 the year and month only)
How can I adapt this to take account of an annual growth rate (in column D)?
For example, if the user selects, "All months", it would grow like illustrated below:
Is there a way to make the formula keep the ability to use the [@Amount] reference rather than use the unstructured reference in the example above?
I've got a IFS formula that spreads costs in different ways according to what is selected in a table next to the cells containing the formulae
(row 6 contains the first day of the month, row 7 the last day and 8 the year and month only)
Forecast Model Example.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
D | E | F | G | H | I | J | K | |||
91 | May-23 | Jun-23 | Jul-23 | |||||||
92 | Annual Growth rate | Repeats | Start | End | Amount | |||||
102 | 0% | End of quarter | 01 May 23 | 31 Dec 26 | £ 5,000 | - | 5,000 | - | ||
Total OpEx |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I91:K91 | I91 | =I$6 |
F102 | F102 | =ForecastStartDate |
I102 | I102 | =IFS( t_Ex_Services[@Repeats]="All months", t_Ex_Services[@Amount], t_Ex_Services[@Repeats]="Every month in range", IF(AND(t_Ex_Services[@Start]<=I$6,t_Ex_Services[@End]>=I$7),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Odd months", IF(ISODD(MONTH(I$8)),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Even months", IF(ISEVEN(MONTH(I$8)),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="End of quarter", IF(OR(MONTH(I$8)=3,MONTH(I$8)=6,MONTH(I$8)=9,MONTH(I$8)=12),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Repeats annually", IF(MONTH(I$8)=MONTH(t_Ex_Services[@Start]),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Spread over period", IF(AND(t_Ex_Services[@Start]<=I$6,t_Ex_Services[@End]>I$7),I$5*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),IF(AND(t_Ex_Services[@Start]>I$6,t_Ex_Services[@Start]<=I$7),(I$7-t_Ex_Services[@Start]+1)*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),IF(AND(t_Ex_Services[@End]>=I$6,t_Ex_Services[@End]<=I$7),(t_Ex_Services[@End]-I$6+1)*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),0))), t_Ex_Services[@Repeats]="", "") |
J102:K102 | J102 | =IFS( t_Ex_Services[@Repeats]="All months", t_Ex_Services[@Amount], t_Ex_Services[@Repeats]="Every month in range", IF(AND(t_Ex_Services[@Start]<=J$6,t_Ex_Services[@End]>=J$7),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Odd months", IF(ISODD(MONTH(J$8)),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Even months", IF(ISEVEN(MONTH(J$8)),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="End of Quarter", IF(OR(MONTH(J$8)=3,MONTH(J$8)=6,MONTH(J$8)=9,MONTH(J$8)=12),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Repeats annually", IF(MONTH(J$8)=MONTH(t_Ex_Services[@Start]),t_Ex_Services[@Amount],0), t_Ex_Services[@Repeats]="Spread over period", IF(AND(t_Ex_Services[@Start]<=J$6,t_Ex_Services[@End]>J$7),J$5*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),IF(AND(t_Ex_Services[@Start]>J$6,t_Ex_Services[@Start]<=J$7),(J$7-t_Ex_Services[@Start]+1)*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),IF(AND(t_Ex_Services[@End]>=J$6,t_Ex_Services[@End]<=J$7),(t_Ex_Services[@End]-J$6+1)*(t_Ex_Services[@Amount]/(t_Ex_Services[@End]-t_Ex_Services[@Start]+1)),0))), t_Ex_Services[@Repeats]="", "") |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
ForecastStartDate | =Assumptions!$C$6 | F102 |
How can I adapt this to take account of an annual growth rate (in column D)?
For example, if the user selects, "All months", it would grow like illustrated below:
Forecast Model Example.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
D | E | F | G | H | I | J | K | |||
92 | Annual Growth rate | Repeats | Start | End | Amount | |||||
100 | 5% | All months | £ 1,000 | 1,004 | 1,008 | 1,012 | ||||
Total OpEx |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I100:K100 | I100 | =H100*(1+t_Ex_Services[@[Annual Growth rate]])^(1/12) |
Is there a way to make the formula keep the ability to use the [@Amount] reference rather than use the unstructured reference in the example above?