Formular to add up qtys from another sheet
Hi Guys
I have a main smartsheet with all my products and current stock levels on, and another smartsheet which has all the product movements and quantitys, this sheet will be the one users update
What I need is for the stock levels for each product on the main smartsheet to update based on the movements file. In both sheets we have the product name which can be used to look up, and in the movements file it has the value.
The item could be listed in the movements file a number of items so it needs to search and add up the quantitys if that makes sense.
Best Answers
-
Assuming the other option is "Goods Out", you would use a SUMIFS to get all of the "In" and subtract from that a SUMIFS of the "Out".
=SUMIFS({Qty}, {Item}, @cell = Item@row, {In / Out}, @cell = "Goods In") - SUMIFS({Qty}, {Item}, @cell = Item@row, {In / Out}, @cell = "Goods Out")
-
Each {Cross Sheet Reference} should be created following the appropriate steps.
.
Answers
-
Assuming the other option is "Goods Out", you would use a SUMIFS to get all of the "In" and subtract from that a SUMIFS of the "Out".
=SUMIFS({Qty}, {Item}, @cell = Item@row, {In / Out}, @cell = "Goods In") - SUMIFS({Qty}, {Item}, @cell = Item@row, {In / Out}, @cell = "Goods Out")
-
Thanks Paul for the quick response, when there has been a goods out, the quantity will be a minus so all the formula needs to do is add up and remove the minus's if that makes sense. I did try the above formula but to be honest got a bit lost when trying to apply it to my smartsheet
-
Right. That's what my formula is doing. Which part did you run into trouble with when implementing it?
-
Paul I think I am just having a mini breakdown and forgotten where to insert the sheet names into the formula
-
Each {Cross Sheet Reference} should be created following the appropriate steps.
.
-
Paul thankyou for all your help, def was having a bad day but all good now thanks
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!