I played around with various combinations of SUBSTITUTE()
, FIND()
, LEFT()
, and RIGHT()
, but I think your best bet is the following IF()
statement:
IF(
Author,
IF(
Name,
Author&'|'&Name&
IF(
Date,
'|'
),
Author&
IF(
Date,
'|'
)
),
IF(
Name,
IF(
Date,
Name&'|',
Name
),
''
)
)&
Date
It’s not as elegant as it might be — I couldn’t come up with a pleasant way to eliminate that double IF(Date...
clause — but it works correctly with all 8 possible combinations.
Edit: Any reason for using Long Text vs Single-line Text fields? The formula works with either, but gallery and kanban views will look better with Single-line Text…
I played around with various combinations of SUBSTITUTE()
, FIND()
, LEFT()
, and RIGHT()
, but I think your best bet is the following IF()
statement:
IF(
Author,
IF(
Name,
Author&'|'&Name&
IF(
Date,
'|'
),
Author&
IF(
Date,
'|'
)
),
IF(
Name,
IF(
Date,
Name&'|',
Name
),
''
)
)&
Date
It’s not as elegant as it might be — I couldn’t come up with a pleasant way to eliminate that double IF(Date...
clause — but it works correctly with all 8 possible combinations.
Edit: Any reason for using Long Text vs Single-line Text fields? The formula works with either, but gallery and kanban views will look better with Single-line Text…
Looks like this Is the best way as any other methods would still require more processing cycles. Thanks!
They really should be single line texts but I learned it’s better to leave a field multi line in general because my users hate it when they press enter and it doesn’t give them a new line.