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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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