Skip to main content
Solved

Hiding #ERROR! Message from field

  • October 18, 2024
  • 2 replies
  • 26 views

Forum|alt.badge.img+4

Please someone help me to hide #ERROR! - not all my fields have dates insert and in this case ERROR appears

 

IF(
  AND(
    {date},
    NOW() >= DATEADD({date}, -30, "days")
  ),
  "ending time"
)

thanks a lot 😉

Best answer by DevonK

You’ll have to use a nested if to check if the date exists first:

IF({date},
 IF(
  NOW() >= DATEADD({date}, -30, "days"),
 "ending time"
 )
)

2 replies

DevonK
Forum|alt.badge.img+15
  • Inspiring
  • Answer
  • October 18, 2024

You’ll have to use a nested if to check if the date exists first:

IF({date},
 IF(
  NOW() >= DATEADD({date}, -30, "days"),
 "ending time"
 )
)

Alexey_Gusev
Forum|alt.badge.img+25

Hi,
Note that it is recommended to use TODAY() instead of NOW() when you don't need time.