Jun 22, 2020 10:44 AM
I am creating an IF formula in the Primary field so I know which apartment my maintenance manager was in, doing what, on what date. I have a table that breaks it down by per suite so it is organized.
I have this as my formula:
Suite & “: " & Comments & " - " & IF({Date Completed}, " (” & DATETIME_FORMAT({Date Completed}, ‘ll’) & “)”)
I copied and pasted it from a sample but it puts the date in brackets. I don’t want brackets around the date. I cannot figure out which parenthesis to eliminate. I have tried different ones but then I cannot save it due to errors in the formula. Is there a way to do this formula so the date is not in (bracketed)?
Solved! Go to Solution.
Jun 22, 2020 12:05 PM
Hi there @Office_Manager!
The bolded parts of the formula below are what’s causing the parentheses to appear in your result:
Suite & “: " & Comments & " - " & IF({Date Completed}, " (" & DATETIME_FORMAT({Date Completed}, ‘ll’) & “)”)
Without them, your formula should look like this:
Suite & “: " & Comments & " - " & IF({Date Completed}, DATETIME_FORMAT({Date Completed}, 'll'))
The ampersands “&” act as a way of concatenating bits of the formula together. For example, you could write a formula like…
"Hello" & " " & "World"
This would return “Hello World”.
I hope this helps!
Jun 22, 2020 12:05 PM
Hi there @Office_Manager!
The bolded parts of the formula below are what’s causing the parentheses to appear in your result:
Suite & “: " & Comments & " - " & IF({Date Completed}, " (" & DATETIME_FORMAT({Date Completed}, ‘ll’) & “)”)
Without them, your formula should look like this:
Suite & “: " & Comments & " - " & IF({Date Completed}, DATETIME_FORMAT({Date Completed}, 'll'))
The ampersands “&” act as a way of concatenating bits of the formula together. For example, you could write a formula like…
"Hello" & " " & "World"
This would return “Hello World”.
I hope this helps!
Jun 22, 2020 12:31 PM
Thanks for the help - it worked!
I think I was not matching the correct parentheses.