Return latest Update

Hi Guys
I have sheet - Incident Recoded, see pic below….
I have formula -
=IFERROR(INDEX(COLLECT(CHILDREN([Incident Description]@row); CHILDREN(Modified@row); MAX(CHILDREN(Modified@row))); MATCH("MTC"; CHILDREN([Primary Column]@row); 0)); "")
This formula works if on row 2 in the pic the Incidents is "MTC" but if the 2nd row is "PD" it returns a blank.
I want the formula to return the latest incident description for only incidents - "MTC"
Please advise
Answers
-
@Morena Please check your other thread. I believe we may have it answered there.
-
The MAX(CHILDREN(Modified@row)) is collecting EVERYTHING, not just the MTC tasks. So when the max (2025/02/17) doesn't match the collected range of MTC (2025/02/12), it returns your #INVALID VALUE argument. To fix it, you just need to COLLECT your MAX as well to include only the MTC tasks.
=INDEX(COLLECT(CHILDREN([Incident Description]@row), CHILDREN([Primary Column]@row), "MTC", CHILDREN([Incident Date]@row), MAX(COLLECT(CHILDREN([Incident Date]@row), CHILDREN([Primary Column]@row), "MTC"))), 1)
Just be aware if there are multiple max MTC dates, this formula would only return the first row. So if there is a chance to have multiple incidents on the same day, it might be best to either throw a JOIN somewhere in there to bring in all of them on the latest day, or use the Row# system column to truly bring in the latest.
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.2K Get Help
- 451 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!