I have TotalMarks field as ShortText because it could be a number or N/A. If [Math] value is N/A then TotalMarks is N/A otherwise sum of [Math]+[Physics]
IIf([Math]="N/A","N/A",CDbl([Math])+CDbl([Physics]))
[Math] and[Physics] are short text fields.
Always store numbers as number. Thus:
=[Math]+[Physics]0.0000,,,"N/A". (Adjust count of decimals as needed)(If outside the US, use this Format:
0,0000;;;"N/A")