excel formula for randomizing sales based on percentage - excel

I am creating a cash flow model. I have 28 properties which I want to calculate their monthly costs for.
I would like to sell 10% of the properties in year one (during a random month), 15% in year 2, 25% year 3, 30% year 4, 12% year 5, 8% year 6.
All entries per month have a base cost (maintanance fees), and if the property is sold will generate a profit minus a sales tax.
Is there any formula i can use to automate this? Im doing monthly cashflows for 84 months so it would take a while to input by hand.
Thanks

If always rounding to the nearest whole number one property would remain after six years, so rounding 8.4 up to 9 to avoid that and adding some property values net of sales taxes for an example, a formula such as:
=IFERROR(IF(MATCH(ROW()-1,J$5:J$13,0),J$4*COUNTIF(J$5:J$13,$A2),""),"")
in B2 copied across and down to G13 may save some labour, assuming J5:O5 has been filled with =RANDBETWEEN(1,12) and that formula has been copied down to the number of cells shown in J3:O3:

Related

Excel Formula - Total subscriptions after Nth years based on monthly churn rates

A business works on a subscription model basis with a expected churn rate (Cancellations) each month during year 1 at 5% & during the following year a churn rate of 2.5% due to the fact these are now established customers (long term).
A new feature or service is launched with a expect increase of subscriptions each month. I need to calculate how many subscriptions would that be in N years based on a 5% churn rate for the first 12 month & a 2.5% churn rate during year 2.
Below is currently how were are calculating this in excel however this is really in inelegant solution when trying to calculate this for say 5 - 10 year impacts.
https://i.stack.imgur.com/yF5Rx.png
Are there any accounting formulas or something mathamitcally I can produce to calculate this in a single cell? Given I would need to set the given churn rates for each year & length of time.
For ease lets say 95% of the time I would be working on a 3 year model of subscriptions & each year will need its own churn rate.
I thought perhaps something with exp & halving the value might work but have not found anything yet.
Here's one way to build the model. I'll make reference to this image:
First we set up the churn model.
Row 1: Since Churn Rates depend on subscription age, Row 1 has the subscription age (in months). This is for reference only and is not used in the calculations.
Row 2: Churn Rates.
Row 3: Since Churn Rates always enter the calculation as (1-ChurnRate), call that term (Single-month) Retention Rate. As an example, in B3 the formula is =1-B2.
Row 4: Since the effects of churn are cumulative over multiple months, we define another term Multi-month Retention Rate (abbreviated MMRR). In the first month this is set to 1; in subsequent months this is the product of previous single-month retention rates. So in C4 the formula is =B4*B3; in C5, =C4*C3, etc.
Row 5: The model as described in the Question indicated a fixed rate of new subscriptions = 100/month. When the subscription rate is fixed, it is convenient to sum up the MMRRs. So in B5 we have =B4; in C5, =B5+C4; in D5, C5+D4; etc.
At this point we're essentially done. If you multiply the values in Row 5 by any fixed rate of new subscriptions (e.g. 100/month in the original Question) we get the number of subscribers in that month. But what if you want to model where the number of new subscriptions varies month to month? Here's how ...
The basic idea is to multiply the monthly subscription rate by its age-appropriate MMRR. Note that Row 8 has varying numbers of new subscriptions (100, 110, 97) in the first 3 months. To get the total subscriptions in Mar-19 for example, we need to
multiply the 100 (Jan-19) subscriptions (that have a 2 month age) by the MMRR for a 2-month old subscription (0.9025),
multiply the 110 (Feb-19) subscriptions (that have a 1 month age) by the MMRR for a 1-month old subscription (0.95),
multiply the 97 (Mar-19) subscriptions (that have a 0 month age) by the MMRR for a 0-month old subscription (1), and
add those three products together.
This could be calculated on the worksheet by entering in D9 the formula =B8*D4+C8*C4+D8*B4. This type of calculation (sum up the pair-wise products of two arrays) is often done with Excel's SUMPRODUCT function. Here we need to take one of the arrays in reverse order, which is not directly supported by Excel. You could enter new subscriptions in reverse order, but that's an ugly kludge. Fortunately, it is do-able with a combination of the OFFSET(), COLUMN() and N() worksheet functions (see here for details). The required formula for B9 is
=SUMPRODUCT($B4:B4,N(OFFSET(B8,0,-(COLUMN($B8:B8)-COLUMN($B8)),1,1)))
This can then be copy/pasted into the rest of row 9.
This model approach is pretty flexible: the churn rates (row 2) and subscription rates (row 8) can both be varied month to month; the total number of retained monthly subscriptions is calculated automatically.

How to calculate no of days where sales were made in MS excel using sumifs and countifs?

I am working on an excel sheet where I am required to calculate average number of days the stores in a city were able to make some sales. I am attaching a sample of the table for reference. The values in the cells represent the number of units sold(not relevant to this question).
Here across NY, two stores are present, and out of the total number of days in consideration (3*2), only 4 days some sales were made, making the average 66%.
Similarly for Paris, there exists only one store which was open across all days.
To arrive at the figures, I tried using nested countifs and SUMIFS , but did not receive the expected results. Also, in some of the older posts, users had suggested to use INDEX MATCH with SUMIFS, but I was not to get accurate results using these.
Can anyone help me to get the correct figures for Total days, and Days with some sale.
SUMPRODUCT SOLUTION
=SUMPRODUCT(--(A$2:A$5=A8)*--(C$2:E$5<>""))
=SUMPRODUCT(--(A$2:A$5=A8)*--(C$2:E$5<>"NO SALE"))
=ROUND(C8/B8,4)
First, according to your grid NY made sales on 4 of the 6 days. (NY1: Mon, Wed; NY2: Tues, Wed). Thus the average is not 50% but 66%.
Second, to get your formula. Assuming "Place" is in column A. Below is for NY, you can solve for the rest.
Total number of days:
In cell "C9": =COUNTIF(A2:A4,"=NY") * 3
Days with sales:
In cell "D9": =COUNTIF(C2:E2,"<>NO SALE") + COUNTIF(C4:E4,"<>NO SALE")

Cash-flow forecasting in excel

I would like it to be able to input contract details (name of the client, duration of the contract and total yearly amount ). Using these contract details, I would like for the program or template to populate a calendar in which we can see each day's deposits.
For example: If I entered 2 contracts:
Total yearly amount of 120$ that start on 01/01/2019
Total yearly amount of 180$ that start on 01/03/2019
by choosing to view March calendar, I would see on the 01/03/2019 2 deposits one of 10$ and the other of 15$ for a total of 25$. But, If I choose to view the month of February, I would see on 01/02/2019 1 deposit of 10$.
I have started an excel sheet which populates it perfectly if it is one time deposit for a specific date.
Where I got stuck was for monthly deposits and special deposits (special conditions where the first month required 25% of the total yearly amount, and will complete the remainder 75% of the total yearly amount in 5 equal deposit the following months).
Here is my basic formula I have put on each day for the month of Janurary:
=IFERROR(IF(AND(VALUE(LEFT(Inputs!$D3,2))=B$2,(VALUE(MID(Inputs!$D3,4,2))='C.F. JAN'!$B$1)),IF(Inputs!$C3="Fixed Monthly",Inputs!$G3/12,IF(Inputs!$C3="Yearly",Inputs!$G3,"")),""),"")
Here is the one of Februrary:
=IFERROR(IF(AND(VALUE(LEFT(Inputs!$D3,2))=C$2,(VALUE(MID(Inputs!$D3,4,2))='C.F. FEB'!$B$1)),IF(Inputs!$C3="Fixed Monthly",Inputs!$G3/12,IF(Inputs!$C3="Yearly",Inputs!$G3,"")),""),"")
I have created sheets for each month that sum the amounts each client's appropriate deposit.
#jessi here is how my data looks like:
here is the formula on M3:
=SUMIF($D$3:$D$10000,$L3,$H$3:$H$10000)+SUMIFS($I$3:$I$10000,$D$3:$D$10000,"<"&$L3,$J$3:$J$10000,">="&$L3)
So, you can do some preliminary math so that your if statements are very simple.
Here's an example. see the added columns? You could enter the data for Contract, Value, Start, First, and Installments. Calculations for FirstPayment, NormalPayment, and Stop.
FirstPayment, for contract a, Row 2, calculated as:
=IF(ISBLANK(D2),G2,D2*B2)
NormalPayment for contract a, Row 2, calculated as:
=IF(ISBLANK(D2),B2/E2,(1-D2)*B2/E2)
Stop for contract a, Row 2 calculated as:
=IF(ISBLANK(D2),EDATE(C2,E2),EDATE(C2,E2+1))
Then, the months with their payments expected, look like so (the formula for January shown):
NOTE: the date 2019-01-01 is in A7, the result (where this formula goes) is in A8. Copy and paste for rest of columns.
=SUMIF($C$2:$C$4,$A7,$F$2:$F$4)+SUMIFS($G$2:G$4,$C$2:$C$4,"<"&$A7,$H$2:$H$4,">="&$A7)
Note that the first SUMIF is dealing with anything that is in its first month. The SUMIFs is dealing with anything that is between Start and Stop.
Edit for changed question to show cashflow by day
To show by day, you first need to add another column, let's say column I, to the data table for contracts. This is the DAY column. DAY($C2). To keep things simple for your cashflow, actually make this If(day($C2)>28),1,day($C2)) to make any falls on 29, 30, or 31 to show up on the next first. You can make other choices here.
Then, you can have each day in time in your cashflow sheet.
I put the cashflow on a new tab and named the contracts data tab CONTRACTS
The cashflow formula (with date in $A2 and result in $B2) is:
=SUMIF(CONTRACTS!$C$2:$C$5,$A2,CONTRACTS!$F$2:$F$5)+SUMIFS(CONTRACTS!$G$2:G$5,CONTRACTS!$C$2:$C$5,"<"&$A2,CONTRACTS!$H$2:$H$5,">="&$A2,CONTRACTS!$I$2:$I$5,DAY(A2))

Excel Formula for Inflation Adjusted Returns

So for example: You want to receive $X in today's dollars at the beginning of each year for Z# of years. Assuming a 3% constant inflation rate and a 7% compounded annual rate of return.
I know the formula to calculate the inflation adjusted returns; for the rate of return you have to use this formula:
[[(1+investment return)/(1+inflation rate)]-1]*100 OR in this instance
[(1.07/1.03)-1]*100
then you need to use the Present Value formula to calculate the rest PV(rate,nper,pmt,[fv],[type]) to find out how much $ is needed to sustain $X adjusted for inflation for Z# years. So here's my formula that I'm using:
=PV((((((1+E16)/(1+B15))-1)*100)),H14,-O7,,1)
Where E16 is my Annual Return (7%), B15 is my Inflation Rate (3), H14 is the number of years I need the payment (30), -O7 is my payment amount (made negative to give a positive #)($127,621.98), future value [fv] is left blank as is unnecessary, and Type is 1 so I calculate for receiving the payment at the beginning of the year.
What all this "should" return is $2,325,327.2044 according to my financial calculator, however Excel is giving me $160,484.6347.
What am I doing wrong here?
The syntax for PV includes:
Rate Required. The interest rate per period. For example, if you obtain an automobile loan at a 10 percent annual interest rate and make monthly payments, your interest rate per month is 10%/12, or 0.83%. You would enter 10%/12, or 0.83%, or 0.0083, into the formula as the rate.
So don't factor by *100.
Many parentheses serve no purpose as the formula below is sufficient:
=PV((1+E16)/(1+B15)-1,H14,-O7,,1)
The Excel (2013) result to four DP is: $2,325,327.2045.

Excel: Formula for compound interest for monthly deposits where deposits increase every year

Simply put I want to know how to get the functionality on this page: in Microsoft Excel.
I tried with the FV functon but it does not seem to have support to increase the payments every year.
The increase in payments could be specified in percentage points (as in the page linked to) or even by a fixed amount every year (like "increase deposit by 10000 every year).
An illustration:
Year 1:
Monthly Deposit: 5000
No. of deposits in a year: 12
Interest rate: 10%
Interest compounded quarterly
Total deposited during the year: **60000**
Interest earned in first year: **3323**
Year 2:
Amount carried forward from first year: **603323** (principal + Interest)
Monthly Deposit: 5500 (increased by 10% or increased by a fixed value of 500 every year)
No. of deposits in a year: 12
Interest rate: 10%
Interest compounded quarterly
Total deposited during the year: 66000
Interest earned during year: 13552 (large, because we started the year with seed value from previous year)
and so on...
The FV function gives me correct value for year 1, but I could not find a way to extrapolate it to increase investment every year.
I don't know how to do the quartlerly interest, it may be because I using excel 2003. I have a solution for a monthly compound that you should be able to modify. The formular in cells b10 is =FV($B$2/12, $B$3, $B$4+A9*$B$7, -$B9,$B$6) to add extra years put the year number in column A and copy and paste the formular in column B. It takes the previous years result as the pv and adds the value iin B7 to the payment rate for each additional year.

Resources