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
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!