Show n/a in formula column if date is blank

Hi I’m using the following formula to calculate the ages of the clients I work with; however I don’t have all of their DOB’s. I wanted to know if I could add something to this formula to either show “n/a” or leave the column blank if a date is not inputted instead of showing the error exclamation. Thanks!

INT(YEARFRAC(FORMAT_DATE({DOB}),FORMAT_DATE(TODAY()))) & " yrs " & INT(MOD(YEARFRAC(FORMAT_DATE({DOB}),FORMAT_DATE(TODAY())), 1) * 12) & " mo "

This can be solved by an IF function in the formula type column .
The formula will change to:
IF({DOB} = “”, “n/a”, INT(YEARFRAC(FORMAT_DATE({DOB}), FORMAT_DATE(TODAY()))) & " yrs " & INT(MOD(YEARFRAC(FORMAT_DATE({DOB}), FORMAT_DATE(TODAY())), 1) * 12) & " mo ")

Unfortunately, that didn’t work. It’s now showing the entire column as errors.

That might be due to fact of absent parenthesis in the internal formula
Try using this:

IF({DOB} = “”, “n/a”, ( INT(YEARFRAC(FORMAT_DATE({DOB}), FORMAT_DATE(TODAY()))) & " yrs " & INT(MOD(YEARFRAC(FORMAT_DATE({DOB}), FORMAT_DATE(TODAY())), 1) * 12) & " mo ") )

@mfink did you try the latest formula? Let me know

Hi—unfortunately that one didn’t work either. This time it retained the information from the original formula, but still shows the error icon for the rows with missing DOB’s.