Counting how many days between to cells
Hello,
i am trying to create a formula that will show how many days from the last delivery on the 23rd to the time before on the 13th based on the run name? a screen shot of the data is below. I would like a formula that would calculate the two most recent days based on the run name QUEN.
thank you
Best Answer
-
You can use a LARGE/COLLECT combo for this...
=LARGE(COLLECT(Date:Date, [Run Name]:[Run Name], "QUEN"), 1) - LARGE(COLLECT(Date:Date, [Run Name]:[Run Name], "QUEN"), 2)
Answers
-
You can use a LARGE/COLLECT combo for this...
=LARGE(COLLECT(Date:Date, [Run Name]:[Run Name], "QUEN"), 1) - LARGE(COLLECT(Date:Date, [Run Name]:[Run Name], "QUEN"), 2)
-
That works!!! thank you!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- 10.7K Get Help
- 63 Global Discussions
- 68 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!