Weighted Average Entry/Exit Cost - excel

Hello I have a question regarding some data that I have extracted into Excel. In particular the Market Depth of a Aluminium. I am trying to calculate what the average entry/exit cost would be for a set number of contracts.
I would be very appreciative of any help one could provide.
Example:
I have set the amount to 20. How could i calculate the weighted average entry price? (Assuming we lift the offer ("Buy") and Hit the Bid ("Sell")
I have pasted the format of my data below. I have been using this to limit thew Vol ("Volume") to be the amount i entered where "R4=20 ATM".
=MIN(SUM($G$3:$G$12),$R$4)

Related

How to remove price outliers from dataset so they don't impact average price

In the bank we are using the average price from six vendors. But we now and then entcounter wrong prices due to the fact that one or more vendors some time publish an incorrect price and this affects the average price. I seek inspiration/suggestions to most effecient/correct way and which formula/logic to use to exclude these price outliers. Here below you see an example of the problem. The prices in red text are considered outliers.
Remaining challenge when only three vendors publish a price and when one of these is a outlier. How do I remove/exclude this outlier?
Note: SAND=True and FALSK= False.
Hope someone can help us out. Many thanks in advance ;-)
Kind regards
Soren Sig Mikkelsen
Solution1:
Easiest of way to remove is via defining the inter quartile range...
In below screenshot you can see the formulas with calculated values...
Logic is very simple, calculate the inter quartile range of your data & see if any of the 6 value is outside the upper/lower limit, If so then it's outlier...
Solution2:
Using Average & Std Deviation

How to properly calculate Basketball team percent averages?

So I was making a dashboard for a personal project and I put some stats on a spreadsheet and made a column that calculated FG% based on (Field Goals Made/Field Goals Attempted) for each player. Now I threw this into Power BI and I want to calculate the team FG% average but Power BI takes the percentages as they are and averages them by taking all the percentages, adding them, and dividing by # of values. Of course, this is the normal way to find the average for General numbers but not percentages. How do I fix this and get the actual average FG%?
I apologize, I'm very new to this. Stats,PowerBI Avg. Calculation
For reference, this is the chart I'm trying to make inPowerBI chart

How can I set up a weighted average of purchase price for something that I might sell part amounts of?

I have a weighted average set up like this:
=IFERROR(SUMPRODUCT(Purchases_XYZ[Cost Per Unit],Purchases_XYZ[Cost])/SUM(Purchases_XYZ[Cost]),"")
The full table includes:
Purchases_XYZ[Date], Purchases_XYZ[Cost], Purchases_XYZ[Units], Purchases_XYZ[Cost Per Unit], Purchases_XYZ[Extras], Purchases_XYZ[Location]
But what if I sell 30% of my units at Location "b"? Then I need to manually decrease the number of units I have left at Location "b".
What if I sell all the units at Location "d"? Then my weighted average can no longer be counted because there is no longer any of that unit left at that price.
I can do the manual stuff - that wouldn't be impossible. But I feel like I am making more work than it needs to be. If you have solutions to offer, I am keen to hear how it could be done.

NetSuite Saved Search -- % of Total Summary

Not sure if this is possible in a saved search, but I want to run a calculation off the summed summary results and display it on the same line. I have a SUM of quantity column and a SUM of quantity fulfilled. I want another column that does qty fulfilled / qty as a percentage but it has to be calculated at the summary level.
Any help would be greatly appreciated.
formula
results
Basically I want to do the following but based on the summary data only, in order to calculate the total fill rate (fulfilled/qty ordered) rather than an average fill rate per order. I don't know if it's possible in a summary saved search.(NVL({quantitycommitted},0)+NVL({quantityshiprecv},0))/NULLIF({quantity},0)
With the above and with the AVERAGE function, it's giving me the average of the individual order fill rates. I want the aggregate fill rate instead. If there are 10 orders and 9 filled at 90%, 1 at 0%, my current formula gives me 90%. But what if that 1 order had a way higher qty than the other orders? Then it would be misleading to show an average fill rate of 90% because on the order that counted, you missed all the sales.
Here's a similar logic you may use:
((sum({quantityshiprecv})/sum({quantity})) * 100)
#Dars is correct, but I thought I'd give you a picture of what that looks like in the NetSuite UI.
It doesn't matter what fields you Group by, and you can use the Minimum, Maximum, or Average Summary Type for your Formula (Percent) field

Formula to calculate how much to reduce a loan amount for PMT formula

I have a simple spreadsheet that calculates the mortgage payment (using PMT) once user enters some key fields. I am also calculating the housing ratio (B9) which is the mortgage payment(B6) divided by income (B7). I am comparing the housing ratio to the maximum housing ratio (B8). There are many times when the housing ratio (B9) exceeds the maximum housing ratio (B8) and I need a formula in cell B11 that will tell me by how much I have to reduce the loan amount in (B3) to NOT exceed the maximum housing ratio in B8.
Can someone help me out with the correct formula?
Being that this is a pretty simple calculations, I'd suggest just doing it manually using iterative calculation.
First, enable iterative calculations for your workbook via File > Options > Formulas > "Enable iterative calculations."
Then, edit the formula for the loan amount to be (sale price * LTV) - reduce by
Doesn't take long the enter a few different numbers in for the "reduce by" to find it needs to be reduced by ~$6786.
If you want to make it a little more clear you can add another row under Loan Amount like so:

Resources