anyone good at excell?

Try

=if(D20>0,(D20-A21-A22-A23-A24-A25-A26-A27-A28-A29-A30-A31),””)

=if D20 isn’t blank then show me the calculation, else show me nothing “”.