excel weighted average volume - excel

I was wondering how to pull a weighted average of Score1 and Score2 based on Score1 Volume and Score2 Volume. The combined score should be closer to "50" than "100" since the Score1 Volume (50) is greater than Score2 Volume (25). What would be a good weighted formula that would help derive this result. The answer should be around 60 (at least closer to 50). answer in Excel would be appreciated. Thanks!!

You can use a helper column where you multiply your weight to your values or use the sumproduct formula
This YouTube video I made shows a quick example
https://youtu.be/g_vsXp8H7Vg

You could do something like the following (easily transferable to Excel):
score1 = 50
score2 = 100
score1_vol = 50
score2_vol = 25
output = (score1*score1_vol + score2*score2_vol)/(score1_vol + score2_vol)
Returns:
66.66

Assuming 100 is in D2:
=(C2*F2+D2*G2)/(F2+G2)
It may be easier to comprehend with a more tangible example. Say Score is the number of eggs in a box and ScoreVolume is the number of boxes. To calculate the average number of eggs per box you need the total number of 'eggs': (C2*F2+D2*G2) divided by the total number of boxes: (F2+G2).

SUMPRODUCT()
Here is another option using SUMPRODUCT(). This works well with large data sets.

Related

In excel, I am trying to make 1-5 score system that when a score is entered out of 1 to 5, it compares it to a % above and gives a total at the end

I am trying to figure out how I can have my excel formula so I put in a score below (between 1 - 5) and it weighs it from the % listed above? In doing this, it weighs its total score in comparison to the % score above?
I hope this makes sense
My formula in cell K5 is:
=SUMPRODUCT(B4:J4;B5:J5)

How can I give discount to the highest priced product

enter image description hereI am trying to figure out how I can solve the following problem in Excel.
First "buis" with the highest "contract tarief" should cost 100% of the "contract tarief" price. The following highest "buis" should cost 50% of the "contract tarief price" all the other "buizen" will cost 25% of the mentioned "contract tarief" price.
For example 6 "buizen" in total 2 of 200mm 1 of 150mm 1 of 125mm and 2 of 100mm. Normally that would cost 8 + 3 + 2 ++ 2 = 15. But the first "highest price one" is 200mm that one will be 4 and the next 2 the rest will be 25% so 25% of 11. And that will be the total price.
So I am trying to make it automated that it automaticly finds the 2 highest costing "buizen" and calculate that they cost 1x100% and 1x50% and then totalling all of the rest "buizen" with the 25% cost.
I hope I make sense. I am from the Netherlands so please ask if you need more clarification. I appreciate your help.
I don't know the layout of your spreadsheet, but;
if column A is your price and B contains your 'contract tarief' then in cell C2 you could enter:
=IF($B2 = MAX($A:$A), $B2, IF(RANK($A2, $A:$A, 0)+COUNTIF($A:$A, $A2)-1 = 2, $B2*0.5, $B2*0.25))
You'll want to adapt that to match your layout of course.
Note that this will return the 100% tarief for all lines with the max value, the 50% for all lines with the second value, and the 25% for everything lower than that (things with duplicate values will get duplicate tariefs).
To give credit where it's due, I copied the unique ranking formula from here.
If one has Excel O365, you could try:
Formula in F2:
=LET(X,SORT(FILTER(A2:D6,D2:D6>0),1,-1),Y,SUM(INDEX(X,0,4)*(INDEX(X,0,3)/4)),Z,SUM(INDEX(X,0,4)),A,INDEX(X,1,4),Y+INDEX(X,1,3)*0.75+IF(Z=1,0,INDEX(X,IF(A>1,1,2),3)/4))
This is long and wordy and paining my head, I'm sure someone can come up with something clever =)
EDIT: The proper Dutch translation of this formula:
=LET(X;SORTEREN(FILTER(A2:D6;D2:D6>0);1;-1);Y;SOM(INDEX(X;0;4)*(INDEX(X;0;3)/4));Z;SOM(INDEX(X;0;4));A;INDEX(X;1;4);Y+INDEX(X;1;3)*0,75+ALS(Z=1;0;INDEX(X;ALS(A>1;1;2);3)/4))

Calculating Total in excel with just % values

I have the following sales data:
I would like to calculate the "Total" rowbut in my actual spreadsheet I do not have access to "LY". It is also not possible to add this column in. Is there a way to calculate the total YoY value of-33% just by knowing the -50% and +50% YoY values for each product?
Many thanks, Alan.
You can calculate LY given the Amt and YoY.
LY = Amt/(1+YoY)
So, in your example, you can calculate your result with :
C6: =(SUMPRODUCT(B4:B5,1/(1+C4:C5))-B6)/SUMPRODUCT(B4:B5,1/(1+C4:C5))

price calculations weighted values

After a bit of advice on doing a calculator with a sliding scale.
I am building a matrix where we have set price points at intervals based on qty of items. The code I use works fine apart from the first 2 ranges.
Because for 1 qty the unit cost is so high my maths won't work.
Example
Qty 1 = £23.25 (Price per unit is then £23.25)
Qty 10 = £51.59 (Price per unit is then £5.159)
I then have further quantity's that work out correctly.
What I need to be able to do is some sort of weighted value, for 2 off the unit price needs to be near the £20 a unit mark, then 3 off less etc until I get to 10 off # £5.159 a unit.
(It costs more for lesser quantity's, we want to encourage more qty)
Has anyone implemented something like this? From 10 qty onwards the calculation is fine as the unit cost changes are not much at all.
Thanks
Assuming you have quantities form 1 to 10, in column A, put 23.25 in B1 and 51.59 in B10, then the following formula in B2:
=B1+(B$10-B$1)/9
And populate down to B9
in C1 use the following formula:
=B1/A1
and populate down. Final result should look like this:
You could use vlookup with a table as so:

Compare percentage value against decimal Excel

I am a bit stumped with this issue, I was wondering if anyone could suggest a solution. In Excel I have a table which looks like this:
1 2 3 4 5 Result Score
80% 85% 90% 95% 100% 92.5% 3.50
What I am trying to calculate is that proportional score, based on where the result falls within the preset decimal 1-5 score.
Thanks.
In your case where each increment is 5% you could use a simple calculation like
=MAX(0,F2-75%)*20
[where result is in F2]
....but assuming that you want to interpolate the score given potentially less linear values in your table try this formula where your table is in A1:E2
=LOOKUP(F2,A2:E2,A1:E1+(F2-A2:D2)*(B1:E1-A1:D1)/(B2:E2-A2:D2))
for linear interpolation this would be general formula, just name the ranges or replace with cell references:
= (perc - minperc) / (maxperc - minperc) * (maxscore - minscore) + minscore

Resources