Formula Help
Hello- I am trying to subtract the most recent # of vaccines on hand from the sum of the total vaccines delivered- any suggestions?
Tried this but it did not work: =(SUM([If you got a shipment, how many doses were in it?]2:[If you got a shipment, how many doses were in it?]61)) - (INDEX([# of vaccine doses on hand today (#s only)]2:[# of vaccine doses on hand today (#s only)]61, MATCH(MAX(COLLECT([Today's Date (Fill daily)]2:[Today's Date (Fill daily)]61, [# of vaccine doses on hand today (#s only)]2:[# of vaccine doses on hand today (#s only)]61, @cell <> "")), 0)))
Answers
-
Hey @Grace Tidwell
I used your criteria. As written, this takes the sum of all delivered vs only the most current amount on hand. Is this how you wanted the formula written?
=SUMIFS([If you got a shipment, how many doses were in it?]2:[If you got a shipment, how many doses were in it?]61, [If you got a shipment, how many doses were in it?]2:[If you got a shipment, how many doses were in it?]61, <>"") - INDEX((COLLECT([# of vaccine doses on hand today (#s only)]2:[# of vaccine doses on hand today (#s only)]61, [Today's Date (Fill daily)]2:[Today's Date (Fill daily)]61, @cell = MAX([Today's Date (Fill daily)]2:[Today's Date (Fill daily)]61), [Today's Date (Fill daily)]2:[Today's Date (Fill daily)]61, ISDATE(@cell), [# of vaccine doses on hand today (#s only)]2:[# of vaccine doses on hand today (#s only)]61, @cell <> "")), 1)
Let me know if this works and if you need to tweak it further
cheers,
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!