Weighted average for last X number of sales

marcushjalmarsson

New Member
Joined
Dec 11, 2017
Messages
1
Hello

I cannot figure this out, hoping you will:)

I have a table consisting of Art.no./Month/Volume/Price

[TABLE="width: 258"]
<colgroup><col span="3"><col></colgroup><tbody>[TR]
[TD]Art.no.[/TD]
[TD]Month[/TD]
[TD]Volume[/TD]
[TD="align: center"]Price[/TD]
[/TR]
[TR]
[TD]210015[/TD]
[TD]1612[/TD]
[TD]200[/TD]
[TD] 190,00 [/TD]
[/TR]
[TR]
[TD]210015[/TD]
[TD]1702[/TD]
[TD]200[/TD]
[TD] 200,00 [/TD]
[/TR]
[TR]
[TD]210015[/TD]
[TD]1705[/TD]
[TD]200[/TD]
[TD] 200,00 [/TD]
[/TR]
</tbody>[/TABLE]

In Another sheet I would like to enter Art.No. ant volume and get the Weighted average for the last sold coinciding with the volume I have entered.


Example of entry:

ArtNo Volume
210015 500

Then I want the formula to return the number 198. Instead of 196,6667

Does anybody have any idea how to do this?


Much Appriciated
Marcus

[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

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