Formula Function - SMALL for dates with duplicates (ERROR)
Hi,
I'm currently using a formula to INDEX my sheet and pick up the smallest date in a column, and then display the 4 smallest (or soonest) dates in that column to pull into my dashboard. The formula is as follows:
=INDEX([Project Name]:[Status], MATCH(SMALL([Next Milestone Date]:[Next Milestone Date], 2), [Next Milestone Date]:[Next Milestone Date], 0), 1)
The "2" in the SMALL formula indicates that I want to pull the 2nd smallest value, and so on. This works great, however if there are any duplicate dates (i.e. 2 of the cells in the column are the same date), the formula will keep pulling the same value and skip any duplicates, which causes me to miss important data points.
For example... I had 3 rows which contained the same milestone date, and I couldn't get my formula to work until I changed the SMALL value to 5, where it displayed the 5th smallest. It seems fairly random.
Is there any fix I can apply to my formula to avoid this issue? Any insight is much appreciated!
Comments
-
=INDEX([Project Name]:[Status], MATCH(SMALL(Distinct([Next Milestone Date]:[Next Milestone Date]), 2), [Next Milestone Date]:[Next Milestone Date], 0), 1)
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
- 142 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!