Need Excel Formula related to Evaluation/Summation - excel

I have an excel sheet like below:
Estimated Cost 130
Discount (%) 10
------------------------
Desired Cost 117
Item Quanity Rate Min. Rate Max. Rate Total(Quanity*Rate)
Wood 10 2.00 4.00 4.00 40.00
Sand 10 5.00 8.00 6.00 60.00
Cement 10 3.00 5.00 4.00 40.00
--------------------------------------------------------------------------
Actual Cost 140
Here column Rate should be adjusted such that the Actual Cost becomes 117. Note that the adjusted Rate value should not be less than Rate Min. and should not be greater than Rate Max. Is there any formula or piece of code to handle this. Also the values should be accurate to 2 decimal places and should not exceed 2 decimal places. I am new to Excel, any help would highly be appreciated.

Should the rates of the items be discounted by the same amount? If yes, just add two columns (Adjusted Rate and Adjusted Total) to your sheet.
Adjusted Rate = Actual Cost / Desired Cost * Rate.
Adjusted Cost = Adjusted Rate * Quantity
If the discount rate can be different per item, then the sum gets complex and has multiple correct answers (eg, you could discount Wood only to make up the difference, or split it between Wood and Sand, leaving cement at its original rate).
As far as the decimal places, the best option is to let all the calculations use as many decimal places as they need, but round off the displayed total to two decimals. This gives the greatest accuracy, regardless of the desired precision.

Related

How can I calculate a Total Value When You Know the Amount of the Percent

How can I calculate a value total when I know the percentage of a total amount. for example: need to raise 50,000. Potential fund 1 has funded 25% of the 50,000. Potential fund 2 has funded 25%.
This goes down the table and at the bottom of Potential fund 1's column I need to know the total value due based on the respective percentages.
I have tried some basic formulas but nothing is giving me the correct output
Total Req'd potential fund 1 potential fund 2 Acquired
£50,000 25% 25% £25,000.00
£7,000 100% 0% £7,000.00
£1,000 65% 21% £860.00
£250,000 5% 5% £25,000.00
£314,000 £57,860.00
So basically for Potential fund 1 I need to know in line with the percentage amounts detailed what there total amount would be in a currency value.
If anyone can help that would be appreciated.
Thanks!
If you want to calculate the currently acquired amount you could use
=SUMPRODUCT((B2:C2)*A2)
Put the formula in D2 and pull down.
If you want the amount in column A, you could use
=D2/SUM(B2:C2)

Formula should be simple

im a bit of a rookie to Excel and I cant find an exact answer to my question.
Basically I want to get picture 1(https://i.stack.imgur.com/8E5zv.png) to do what picture 2 (https://i.stack.imgur.com/LXJhq.png
) is showing. Its probably a really easy question.
So any value total over 10,000 will be charged at the 25p rate and any value below 10,000 will be charged a the 40p rate.
so cumulatively, one person may have claimed 9999 miles since starting and they put in a new expense claim for 10 miles, I would like the 1 mile to go to the 40p rate and the other 9 to the 25p rate.
What sort of formula would I need?
Thanks for any help in advance!
If the previous cumulative mileage is denoted by Old, the additional mileages by Miles and the threshold at which the lower rate is payable by Thold then consider the following. There are 3 cases:
Old+Miles<=Thold: All Miles paid at the higher rate
Old<Thold<=Old+Miles: Miles split so that Thold-Old paid at higher rate and Miles-(Thold-Old) at lower rate
Thold<=Old: All Miles paid at lower rate.
Miles are paid at the higher rate whenever Old is less than Thold and the number of miles paid at the higher rate is the lesser of Miles (Case 1.) and Thold-Old (Case 2.). This could be expressed in Excel-like way as
`=IF(Thold-Old>0,IF(Miles<Thold-Old,Miles, Thold-Old),0)`
but a much more succinct expression is
`=MIN(Miles,MAX(Thold-Old,0))`
Both formulae, deliver a correct result in all 3 cases (including a value of zero for case 3.) and so each represents a generally applicable formula for the number of miles to be paid at the higher rate.
Similarly, miles are paid at the lower rate whenever Old+Miles exceeds Thold and the number paid at this rate is the lesser of Miles (Case 3.) and Miles-(Thold-Old) (Case 2.). In this case the IF expression is:
`=IF(Old+Miles>Thold,IF(Miles<Miles-(Thold-Old),Miles,Miles-(Thold-Old)),0)
but this can be equivalently written as
`=IF(Old+Miles-Thold>0,IF(Miles<Miles+Old-Thold,Miles, Miles+Old-Thold),0)`
and I will leave it for you as an exercise to work out the succinct version. The formula(e) deliver a result of 0 for case 1. and so are generally applicable for calculating the miles to be paid at the lower rate.

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.

How to work out the stamp duty rate for each band using excel?

I am trying to work out how to calculate stamp duty at each rate band using excel and struggling to do so, whatever I try is to no avail.
I have managed to calculate stamp duty of the overall price using the SUMPRODUCT formula but what I am really looking to do is calculate it at each band. For instance. If a house costs £300,000, what I want to know is how much it costs at each rate as described here https://www.gov.uk/stamp-duty-land-tax/residential-property-rates
Sorry if I did not explain myself clearly, I could not copy the different rates here as it got messed up.
I hope someone can help, I have been working on this for quite some time now, I understand there are calculators available online but I want to be able to do it in excel.
Here's what I came up with. In columns C and D, fill down the formulas to row 8, and given the property value in C1, the result will be given in D10.
A B C D
1 Value 1825000
2
3 Band Cutoff Value exceeding cutoff Duty paid in band
4 0% 125000 =MIN(C$1, B4) =MAX(A4*C4, 0)
5 2% 250000 =MIN(C$1-B4, B5-B4)
6 5% 925000
7 10% 1500000
8 12% 9999999999
9
10 Total duty paid =SUM(D5:D8)

Calculated field totals not correct in PowerPivot

I have a basic data set with a ton of slicers that roughly looks like this:
Hours SpreadPerHr Spread
5.00 5.00 25.00
10.00 2.00 20.00
8.00 10.00 80.00
Where Spread is a calculated value where Spread = Hours*SpreadPerHour. The problem is, the totals for these columns follow this formula too, so it looks like this:
Hours SpreadPerHr Spread
5.00 5.00 25.00
10.00 2.00 20.00
8.00 10.00 80.00
Total: 23.00 17.00 391.00
And while the hours total up just fine, SpreadPerHour is dynamic and so Spread is as well. It is incorrect to say Total Spread = Total Hours * Total SpreadPerHour. Totals should be:
Total: 23.00 17.00 125.00
Is there a way I can make excel leave totals for Hours as-is, but sum the column for Spread instead of multiplying totals?
Here is what I think you have in your Power Pivot Model:
You have a calculated measure for Spread, which I have labeled SpreadCalc1. The problem with this is that it does the aggregation before it does the multiplication. You need this operation to be done on a row-by-row basis and then aggregated. So instead of a calculated measure, you need to create a calculated column and then sum that column.
The column I have labeled as SpreadCalc has the formula =[Hours] * [SpreadPerHr].
The calculated measure I called Spread is just Sum([SpreadCalc]). You can see there that the total is 125 as desired instead of 391.
I know this might be a bit redundant now, but I would suggest a slightly different approach.
Adding calculated columns in "small" tables is fine, but it can cause serious performance issues with large databases.
So to solve your problem, I believe the "correct" way is to use SUMX function.
It calculates the expression specifically for each row, which is exactly what you need. And it is smart as far as performance goes (no need to add calculated columns or perform any source-data manipulations).
If you use this formula (correct the name of the table / measures), you should get the desired results:
SUMX(YourTable, [Sum Hour] * [Sum SpreadPerHr])

Resources