If you are not aware of Aggregate function, you will need to use Array Formulas which can handle this kind of data easily.
=SUM(IFERROR(A1:A3,0))
=SUM(IF(ISNUMBER(A1:A3),A1:A3))
Both the formulas above will require a special key stroke Ctrl+Shift+Enter