Weighted average but with negative values - % return on purchase and sales

skghost

New Member
Joined
Oct 11, 2019
Messages
1
I apologize in advance as I will try my best to explain my predicament. I am attempting to find a way to calculate net gain or loss from the purchase or sale of an item. However, by inputting negative values in to the items sold column, it is throwing off my numbers.

Initially I was using a weight sum average formula (this seemed to throw off my "cost basis") - "=SUMPRODUCT(A1:A3, B1:B3)/SUM(A1:A3)"

As you can see in the image Weighted average in column B above is where I would use the weighted sum average, but to get the desired % return in column G, weighted average should be at $20


Which area of my set up do I need to change to get the desired % return of my current holdings in column G? Thank you for any help!

644964d1570827587-weighted-average-but-with-negative-values-return-on-purchase-and-sales-excel-return-q.jpg
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I apologize in advance as I will try my best to explain my predicament. I am attempting to find a way to calculate net gain or loss from the purchase or sale of an item. However, by inputting negative values in to the items sold column, it is throwing off my numbers.

Initially I was using a weight sum average formula (this seemed to throw off my "cost basis") - "=SUMPRODUCT(A1:A3, B1:B3)/SUM(A1:A3)"

As you can see in the image Weighted average in column B above is where I would use the weighted sum average, but to get the desired % return in column G, weighted average should be at $20


Which area of my set up do I need to change to get the desired % return of my current holdings in column G? Thank you for any help!

644964d1570827587-weighted-average-but-with-negative-values-return-on-purchase-and-sales-excel-return-q.jpg

Welcome to the forum.

There is no image in your post as you noted and would be needed to understand your problem. You'll need to type an example in your post (insert rows/cols and data) or use an add-in like the HTML maker (search this site for this and other add-ins).

James
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
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