Here is what I want to do, I have tried as much as I know but cant get it right.

This simulates pretty much what I am doing.........

If cell F3 is blank do not calculate anything. Otherwise calculate G3+I3-J3-K3. But if cell G3 is also blank calculate J3+I3-J3-K3 instead and vice versa on the calculations.

Thanks NP