Skip to main content
Solved

Is there a "null date"? So I don't get errors or "Your result type is not a number or a date."


Forum|alt.badge.img+12

For example, I have a date field, some of which are filled in, some of which are not. I want to make a second date field that is a time offset from the first. I want this formula field to stay in date format so it can be exported to a calendar, etc:

However, when the first field is blank, the second field shows an error instead:

How can I change my formula to output “absence of date” when the first field is blank? Using IF(BLANK( to return "" or 0 breaks the date formatting:

Best answer by Jonathan11

Jonathan11 wrote:

That doesn’t work, as I said. "" is a string, not a date, so the field cannot be formatted as a date anymore:


Just leaving the “else” argument blank seems to work:

IF({date}, something)
View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+16
  • Inspiring
  • 532 replies
  • June 28, 2022

Hi @Jonathan
You are on the right track!

The format for an IF formula is IF(something that can be true, do this if true, do this if false)

IF({date}, something, '')

So IF(there is a date in the field named date, do something, otherwise output blank)


Forum|alt.badge.img+12
  • Author
  • Inspiring
  • 11 replies
  • June 28, 2022
Vivid-Squid wrote:

Hi @Jonathan
You are on the right track!

The format for an IF formula is IF(something that can be true, do this if true, do this if false)

IF({date}, something, '')

So IF(there is a date in the field named date, do something, otherwise output blank)


That doesn’t work, as I said. "" is a string, not a date, so the field cannot be formatted as a date anymore:


Forum|alt.badge.img+12
  • Author
  • Inspiring
  • 11 replies
  • Answer
  • June 28, 2022
Jonathan11 wrote:

That doesn’t work, as I said. "" is a string, not a date, so the field cannot be formatted as a date anymore:


Just leaving the “else” argument blank seems to work:

IF({date}, something)

Reply