Excel formula for cumulative interest rate with variable yearly rates - excel

I have large table of year values along with values for that year and corresponding inflation rates for that year:
For any given period of years - lets say 10 - I'm using VLOOKUP to get the values and want to find the cumulative interest rate for that period so that I can sum the values and apply the cumulative rate.
I did find a formula for Powerpivot which does exactly what I need using SUM and LN but my Excel skills don't stretch to converting it:
Powerpivot formula
Can anyone assist here please?

You can Achieve that with Simple Excel Formulas:

Related

Excel - Get hourly averages for data spanning 1 year (8760 data points)

I have an excel document with values for every hour for every day of a year.
In total there are 365*24=8760 values.
I would like to get the average value at every hour, (etc at 00:00, 01:00, 02:00..)
I was thinking maybe to sum every 24th value and then divide it by 365 but I don't know how to sum every 24th value.
Does anyone know how to do that?
Thanks for any help!
The clearer way of doing it is using a column to get the hour of each data point and adding a AVERAGEIF formula to calculate the average of every hour.
I am assuming your date/time is on A2:A8761 and the values on B2:B8761.
On C2, add the formula =HOUR(A2) and drag it down to find the hour of every data observation (for newer excel versions you can also
do =HOUR(A2:A8761) and the formula will automatically spill down). The results are numbers from 0 to 23.
Building the summary table:
Add a column listing the numbers 0 to 23 to represent the 24 hours. I did it on column E2:E25. Note that those are numbers, not date/time.
On F2, add the formula =AVERAGEIF($C$2:$C$8761,E2,$B$2:$B$8761) to calculate the average of the hours listed on column E. Then, drag it down. Finally, you will have the values you need on F2:F25.
Find bellow my result.
Please let me know if you have any question so I can improve the answer.

Calculating total monthly precipitation values using SUMIF function to specify date window

I've got an excel sheet with dates in one column (daily) and total precipitation values for that date in another column from 01/01/2000 to 31/12/2021.
I want to calculate the total monthly precipitation values from 2000 to 2021.
The formula I have been using after some research online was (which I was planning on iterating over the months):
=SUMIFS(B2:B8036,C2:C8036,"<="&DATE(2003,9,1),C2:C8036,">="&DATE(2003,9,30))
The values I want to sum (precipitation) are in the B column, the dates are in the C column. However, I get a zero value returned in the cell when I run the formula, even though the actual value should be 131.94.
I'm not sure what mistake I made in my formula.
My operators were wrong, changing it to
=SUMIFS(B2:B8036,C2:C8036,">="&DATE(2003,9,1),C2:C8036,"<="&DATE(2003,9,30))
solved my problem.

How to evenly distribute growth to each month?

Assume my Dec'2020 revenue is 1000. My total 2021 revenue forecast is 15000.
I turned this into a monthly revenue increase evenly distributing the growth.
I set every month equals to their previous month PLUS a number(currently blank) throughout the 2021.
Then I have a SUM() formula to total every month of 2021.
I would then use goal seek to set the SUM to 15000 and change the value of the "number".
Results look like this
This has produced the desire result.
However, I am wondering if there's a faster way to do this? I would need this in a formula that I can simply drag over and get the results.
I have tried PMT formula with no luck.
Not sure if I understand what you after correctly, but here is my attempt:
Suppose you have the following named ranges:
Rev_Fcst being the forecast revenue for the next year which is 15,000 in your example;
Rev_Mth0 being the starting revenue of Month zero which is 1,000 in your case;
Rev_Growth being a dollar value of monthly revenue growth, and in your assumption this figure is fixed across the 12 months.
Suppose your data is in Column A:M being the 13 months from Dec-2020 to Dec-2021,
Use this formula to calculate Rev_Growth:
=(Rev_Fcst-Rev_Mth0*COLUMNS($A$1:$M$1))/SUMPRODUCT(ROW($1:$12))
Suppose the revenue of Month Zero Dec-2020 is in Cell A2, then in Cell B2 enter the following formula, then drag it across all the way to Month Dec-2021.
=A2+Rev_Growth
See below demonstration:
Let me know if you have any questions. Cheers :)

Getting the result for multiple input values

I would like to get the result for multiple percentage values.
Currently, it's only doing it for a single percentage value, e.g. on my screenshot for the -1,0% value.
The Sales row depends on the values from the Sales Growth rates row.
The result with the sums just sums up the values from Sales.
Is there a way to do it efficiently, without adding 3 more Sales Growth rates rows?
Edit:
Sorry I may not have expressed myself correctly.
The first two Sales growth rates have base values pre-defined.
Its values after 2019 are multiplied with $F$69 * -1,00%.
The Sales rows values are all multiplied with the according Sales growth rates values.
Thus I just want the Sales Growth Rates also being multiplied with the other percentages, thus having a sum of sales for each of the 4 percentage values.
One solution for example would be to add 3 more Sales and 3 more Sales growth rates rows, each being multiplied with the 4 percentage values. But that's very inefficient.
Edit2:
This is a screenshot of how it can be done statically in an inefficient way as I mentioned in the last part of my first edit:
My goal is to spare the cells with the green rows as shown in my first screenshot.
I think it is more a mathematical question than an Excel one.
I used a helper column to calculate the growth rates for each scenario.
The formula is =1+A5*$C$3 where A5 is -1% and C3 is 10% under 2019. Drag it down to work out the growth rates for -0.5%, -1.5% and -2%.
Then you can use either of the following formulas to find out the total sales for each scenario:
=SUM($B$2:$C$2,$C$2*(B5+B5^2+B5^3+B5^4+B5^5+B5^6+B5^7+B5^8+B5^9+B5^10+B5^11))
or
=SUM($B$2:$C$2)+SUMPRODUCT($C$2*POWER(B5,ROW($1:$11)))
Drag them down to apply to each scenario.
Let me know if you have any questions. Cheers :)

How to calculate a moving average over a year with unevenly spaced dates in Excel?

I have some data that I want to calculate the moving average of over a year's time. If the data was always sampled at the same rate and there were the same number of cells included each time, I could just use the offset function, but this is not the case. I currently am just using the average funcntion and changing the cells as I insert a new row. I would like to be able to reference the dates on the left in order to find the average of the data points that are in the last year without having to change the cells referenced in the equation every time. I would need to do something similar in an 80% confidence interval equation I have. Unfortunately I have just created a stack overflow account, as I usually can find an answer online somewhere, so I do not have enough rep to add a picture. Any help is much appreciated!
It sounds like you need a conditional average where:
Start date is greater than the date 1 year prior to date
End date is equal to date
Assuming dates in column A and values in column B then you can use the AVERAGEIFS function as follows:
=AVERAGEIFS($B:$B,$A:$A,">"&EDATE(A250,-12),$A:$A,"<="&A250)
EDATE(Date, Months) returns the date that is Months before or after Date.

Resources