Updating a stock balance whilst calculating new average price

marcidee

Board Regular
Joined
May 23, 2016
Messages
184
Office Version
  1. 2019
Please can someone help if what I am asking is feasible)

I have a spreadsheet with a few tabs:
one tab is keeping track of stock balances as well as cost price (first upload) tab called 'Stock'
another tab tracks purchases (second upload) tab called 'Purchases

What I would like to achieve is if products are purchased that already exist (entered into Purchase tab) - add these to Qty already in the Purchased column (F) of the 'Stock' tab
If there is a difference in Price (Column E in purchase tab) - calculate the new average cost into the Stock tab sheet (Column C) - this shouldn't alter the cost price of any items already previously sold which are in recorded in another tab called Sales

If the way to process this required adding columns that would be fine.

Thank you for your help

Marc

Stock tab
StockNameColumn1Item CostMark upSale PriceQty PurchasedSoldStockValue of Stock
Amazon EchoActive
£17.00​
£2.00​
£19.00​
20​
6​
14​
238​
Anker NebulaActive
£319.99​
£30.00​
£349.99​
15​
7​
8​
2560​
BaByliss Berry Crush StraightenerActive
£28.00​
£28.00​
2​
1​
1​
28​
Baylis & Harding Jojoba, Vanilla & Almond Oil Luxury Bathing Duo Stack Gift Box Gift Set - Vegan Friendly…Active
£7.49​
£7.49​
10​
1​
9​
67​
Bush Big LED Alarm Clock RadioActive
£14.99​
£14.99​
3​
0​
3​
45​
Canon MG3650S WH…Active
£39.99​
£39.99​
1​
1​
0​
0​
Canon PIXMA TR4551Active
£49.99​
£49.99​
0​
0​
0​
0​
Canon PIXMA TS5151 3-in-1 Printer - White…Active
£59.00​
£59.00​
2​
0​
2​
118​

Purchase tab
DateStock NamePurchase PricePrevious PriceDifference in PriceBought QTYTotal cost
03/01/2022​
Heroes of Goo Jit Zu SUPAGOO DINO…
10.00​
10.00​
0.00​
4​
40.00​
09/01/2022​
Amazon Echo
16.50​
17.00​
-0.50​
2​
33.00​
06/01/2022​
Anker Nebula
319.99​
319.99​
0.00​
2​
639.98​
07/01/2022​
BaByliss Berry Crush Straightener
23.00​
28.00​
-5.00​
1​
23.00​
08/01/2022​
Baylis & Harding Jojoba, Vanilla & Almond Oil Luxury Bathing Duo Stack Gift Box Gift Set - Vegan Friendly…
22.00​
7.49​
14.51​
1​
22.00​
10/01/2022​
CLARINS Body Care Set 3Pc
56.00​
23.10​
32.90​
1​
56.00​
05/01/2022​
Pixi Best of Vitamin C- Mask, Toner & Moisturiser…
13.00​
9.99​
3.01​
1​
13.00​
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Thank you for this - I will try and work through this and see if I can make it work with my sheet - I need two tables due to additional data that will be added down the line
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

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