I am looking for a way to parse a lookup field (Sprint Start Date) that contains multiple, comma-separated date values, and pull the most recent date into a new field.
For example:
- IF --> Sprint Start Date = 2024-10-12, 2024-12-22
- THEN --> Formula Field = 2024-12-22
I have tried to use the following formula to parse the Sprint Start Date field and convert it, but it always returns the same value, or an error:
DATETIME_PARSE(MAX(IF({Sprint Start Date}), VALUE(DATETIME_FORMAT({Sprint Start Date}, 'YYYYMMDD'))))
Outcome #1: 12/31/1969
Outcome #2: #ERROR!
I have also tried this, which gets me closer, but not quite what I'm after:
DATETIME_PARSE(MAX(IF({Sprint Start Date}), VALUE(DATETIME_FORMAT({Sprint Start Date}, 'YYYYMMDD'))),'YYYYMMDD')
In this case, I get one of two outcomes:
Outcome #1: The correct date, minus one day
- e.g. If Sprint Start Date = 12-02-2025 the formula field returns 12/01/2025
- This happens when there is only one value in the date field
Outcome #2: #ERROR!
- This happens when there is more than one date in the Sprint Start Date field
I feel like I'm close, but could use some help getting this right. Can anyone help with this?