Skip to main content
Solved

If Date Formula

  • June 22, 2020
  • 2 replies
  • 29 views

Forum|alt.badge.img+8

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)?

Best answer by AlliAlosa

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!

2 replies

Forum|alt.badge.img+19
  • Inspiring
  • Answer
  • June 22, 2020

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!


Forum|alt.badge.img+8

Thanks for the help - it worked!

I think I was not matching the correct parentheses.