Remove 'NaN' value before loading calculation?

Hi, is there a way to remove the NaN value before loading a calculation using a custom formula?