Automatically Reduce Stock from selling list

meriambambu

New Member
Joined
Jun 15, 2016
Messages
17
I would like to create a file that can reduce stock automatically from my starting inventory based on the name of item that was sold.

here is a download link for my sample file
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hello again, i tried to experience with external data as a reference formula but i am stuck at finding the right function.
I've triend to use count and sum and it is working fine.
This two function works fine,
=SUM([sales.xls]Sheet1!C2:C20)
=COUNT('C:\Users\test\Downloads\[sales.xls]Sheet1'!B1:b21)
But when i tried to combine using the formula like this
=$I$4-SUMPRODUCT(($M$4:$M$100=$H$4)*($N$4:$N$100)) (working formula)
=$I$4-SUMPRODUCT(($M$4:$M$100=$H$4)*('C:\Users\test\Downloads\[sales.xls]Sheet1'!N4:N100)) (error).
Do you have any idea how to solve this?
 
Upvote 0
in your spreadsheet have a column - let us say col AA - in AA1 put = C:\Users\test\Downloads\[sales.xls]Sheet1'!N1

then use that column in the sumproduct
 
Upvote 0
red
blue
red
blue
red
10
SUMPRODUCT(($A$1:$A$5="blue")*(Sheet2!$B$1:$B$5))
this refderences a different sheet in same workbook

<colgroup><col width="64" span="12" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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