Skip to main content
Solved

I have an age formula that returns an "error" if no birthday is available. How do I remove the "error"

  • January 28, 2018
  • 5 replies
  • 39 views

I have an age formula that returns an “error” if no birthday is available. How do I remove the “error”

Best answer by Jeremy_Oglesby

The above didn’t work for me.
But this worked okay.

IF({Birthday}=BLANK(),BLANK(),DATETIME_DIFF(NOW(),{Birthday},‘years’))


Hey @John_Buttner

I wrote that post before I had a realization that straight quotes were constantly being converted to curly quotes in the forum editor 😆. Those curly quotes in my answer above cause problems in the Airtable formula editor.

Glad you found a variation that works for you. Just want to follow up that for clarity’s sake, your (and my) formulas can be simplified to this:

IF(Birthday, DATETIME_DIFF(NOW(),Birthday,'years'))

And I’ve carefully vetted that for the right type of quotes!

5 replies

  • New Participant
  • May 16, 2018

Hi Greg, were you able to fix this? I’m having the same issue


Forum|alt.badge.img+18

Hi Greg, were you able to fix this? I’m having the same issue


You can use a conditional statement to return a blank cell if the “Birthday” field is empty:

IF(Birthday, DATETIME_DIFF(NOW(),Birthday,’years’),BLANK())

That should do it.


  • New Participant
  • March 8, 2020

You can use a conditional statement to return a blank cell if the “Birthday” field is empty:

IF(Birthday, DATETIME_DIFF(NOW(),Birthday,’years’),BLANK())

That should do it.


The above didn’t work for me.
But this worked okay.

IF({Birthday}=BLANK(),BLANK(),DATETIME_DIFF(NOW(),{Birthday},‘years’))


Forum|alt.badge.img+18

The above didn’t work for me.
But this worked okay.

IF({Birthday}=BLANK(),BLANK(),DATETIME_DIFF(NOW(),{Birthday},‘years’))


Hey @John_Buttner

I wrote that post before I had a realization that straight quotes were constantly being converted to curly quotes in the forum editor 😆. Those curly quotes in my answer above cause problems in the Airtable formula editor.

Glad you found a variation that works for you. Just want to follow up that for clarity’s sake, your (and my) formulas can be simplified to this:

IF(Birthday, DATETIME_DIFF(NOW(),Birthday,'years'))

And I’ve carefully vetted that for the right type of quotes!


  • New Participant
  • March 8, 2020

Hey @John_Buttner

I wrote that post before I had a realization that straight quotes were constantly being converted to curly quotes in the forum editor 😆. Those curly quotes in my answer above cause problems in the Airtable formula editor.

Glad you found a variation that works for you. Just want to follow up that for clarity’s sake, your (and my) formulas can be simplified to this:

IF(Birthday, DATETIME_DIFF(NOW(),Birthday,'years'))

And I’ve carefully vetted that for the right type of quotes!


I new at AirTable but have MSoft Access programing experience.

Yep that works and I like it much better.
Thanks for the simplified code. :slightly_smiling_face: