You need an IF formula, FE.
Let's say you're present formula is something like
Modify this to
which will leave the result cell blank if A2 is blank.
I know that your formulas will not be the same as these, but that's the general method anyway.