Weighted Average

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
657
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Looking for Weighted Average per Symbol (AK:AK).
Thank you.

The Whole Enchilada.xlsm
AFAGAHAIAJAKAL
1BuysWeighted Average
2CurrentQTYPriceCostSymbolPrice
3TECL33$57.58$1,900.00TECL??
4CYBR25$48.00$1,200.00CYBR??
5CYBR20$45.00$900.00
6TECL25$60.20$1,504.90
Buy Worksheet
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
ignore , did not realise the cost - was how the price was calculated
use offthelip solution next

how about
=SUMPRODUCT(($A$3:$A$6=F3)*($B$3:$B$6)*($C$3:$C$6))/SUMIF($A$3:$A$6,F3,$B$3:$B$6)

Book6
ABCDEFG
1BuysWeighted Average
2CurrentQTYPriceCostSymbolPrice
3TECL3357.575757581900TECL58.70517241
4CYBR25481200CYBR46.66666667
5CYBR2045900
6TECL2560.1961504.9
Sheet4
Cell Formulas
RangeFormula
G3:G4G3=SUMPRODUCT(($A$3:$A$6=F3)*($B$3:$B$6)*($C$3:$C$6))/SUMIF($A$3:$A$6,F3,$B$3:$B$6)
 
Upvote 0
try this:
Excel Formula:
=SUMIF(A$3:A$6,F3,D$3:D$6)/SUMIF(A$3:A$6,F3,B$3:B$6)
 
Upvote 0
Solution

use the solution from​

offthelip

much better solution, i didnt see the relationship with the cost and price - i just assumed it was a selling price and so need to multiple that by quantity

sales * qty
for each row of that item
then work out the average
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,821
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top