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
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 466 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!