Hi folks,
I'm have a dataset of events in Airtable with each event as a row, and each row has a different number of sessions that can make up the complete event. This means I have 8 end date & time columns to capture the finish time of each session. I need a column that will dynamically show the end date & time of the whole event, regardless of the number of sessions so that I can use this in various calendar/timeline views in Airtable.
I've attempted to pull them all into an IF statement, like this:
IF({Session 8 end time},DATETIME_FORMAT({Session 8 end time},'DD/MM/YY h:mm A'),
IF({Session 7 end time},DATETIME_FORMAT({Session 7 end time},'DD/MM/YY h:mm A'),
IF({Session 6 end time},DATETIME_FORMAT({Session 6 end time},'DD/MM/YY h:mm A'),
IF({Session 5 end time},DATETIME_FORMAT({Session 5 end time},'DD/MM/YY h:mm A'),
IF({Session 4 end time},DATETIME_FORMAT({Session 4 end time},'DD/MM/YY h:mm A'),
IF({Session 3 end time},DATETIME_FORMAT({Session 3 end time},'DD/MM/YY h:mm A'),
IF({Session 2 end time},DATETIME_FORMAT({Session 2 end time},'DD/MM/YY h:mm A'),
IF({Session 1 end time},DATETIME_FORMAT({Session 1 end time},'DD/MM/YY h:mm A')))))))))
But I can't format the formula field as a date so it's recognised as an end date field for certain views. Can anyone point me in the right direction please? Thanks in advance!