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!
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 ")
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.