Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Formula needed
I am trying to set up a formula that will subtract from a given value, each time that item is found.
I have a form that my team will be using to enter data (item) and how much they found (subtract from value). In turn, I need to have a running total of what is still not reported for each item.
Comments
-
Hi jsmith1872,
To accomplish this task, you can take advantage of the COLLECT() function which is used within another function to collect specific values in a range that meet the provided criteria.
Essentially we're going to "collect" the total number of time number of times an item is found and subtract that from the initial value.
Here's an example of how you can set this up:
- Create a column called "Item" (this is the label that identifies what someone finds)
- Create a column called "Number" (this is the amount of that item they found)
- Create a column called "Value" and enter the following formula: =X - SUM(COLLECT(Number:Number, Item:Item, "Label")) where X is the initial value and Label is the name of that item
Depending on exactly how your sheet is set up you may need to vary this approach. You can find more information about the COLLECT() function here: https://help.smartsheet.com/function/collect
Thanks!
Schiff
Smartsheet Support
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives