Adding 5 variables when 2 variables are null , in this total value not showing?

a=2, b=3, c=4, d=5, e=6 adding all ( total = 18)
a= 2, b= not putting any value, c=not putting any value, d=4, e=7 then Total = not showing

Can please help?