Find the value just before Max?
I am trying to use Smartsheet to keep inventory of products I use incrementally but I am running into a formula issue that I am unable to solve. I have been using MAX(COLLECT()) to pull the most recent inventory check for an item, but I want to be able to pull the previous check as well so that I can compare how much product was used between checks.
Does anyone have a recommendation for the best way to pull both checks?
Unique values I can currently reference:
- Date of inventory check
- Inventory check number
- Part number
Best Answer
-
Hi @KT_H
To get the "Date of inventory check," which is "Just before Max," I would use a formula like this.😀
=MAX(COLLECT([Date of inventory check]:[Date of inventory check], [Date of inventory check]:[Date of inventory check], <MAX([Date of inventory check]:[Date of inventory check])))
Answers
-
Hi @KT_H
To get the "Date of inventory check," which is "Just before Max," I would use a formula like this.😀
=MAX(COLLECT([Date of inventory check]:[Date of inventory check], [Date of inventory check]:[Date of inventory check], <MAX([Date of inventory check]:[Date of inventory check])))
-
@jmyzk_cloudsmart_jp thank you! That helped me push through!
-
Happy to help!😁
Help Article Resources
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
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!