Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Displaying two linked records + date in one cell;

Topic Labels: Formulas
Solved
Jump to Solution
623 2
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get the “)” to display after the “X” in COMX

(({SchDep} & “-”) & {Dest} & “-”) & {LdTo} & " (" & {SCAC} results in:

2200-KLO-KLO (COMX

but

(({SchDep} & “-”) & {Dest} & “-”) & {LdTo} & " (" & {SCAC} & “)”)

results in a formula error.

I’m also unable to display the date from a date field as part of the formula. It ends up looking like 2019-17-26-T00:00:00.000Z

Also, is it possible to formulate two linked records {A} and {B} to display in one cell with the above?

Capture.PNG

1 Solution

Accepted Solutions

Your formula has unnecessary parentheses.

DATETIME_FORMAT({Date},'YYYY-MM-DD') & ' ' & {SchDep} & '-' & {Dest} & '-' & {LdTo} & ' (' & {SCAC} & ')'

To get a date to appear ‘properly’ you need the DATETIME_FORMAT() function, i.e. DATETIME_FORMAT({Date},'YYYY-MM-DD'), which would display today’s date as 2019-07-29

See Solution in Thread

2 Replies 2

Your formula has unnecessary parentheses.

DATETIME_FORMAT({Date},'YYYY-MM-DD') & ' ' & {SchDep} & '-' & {Dest} & '-' & {LdTo} & ' (' & {SCAC} & ')'

To get a date to appear ‘properly’ you need the DATETIME_FORMAT() function, i.e. DATETIME_FORMAT({Date},'YYYY-MM-DD'), which would display today’s date as 2019-07-29

Wow thanks again, Kamille! You got skills!