I Want an excel formula to make sure the shapes (circle - triangle - trapezoidal) not overlapped with each other.

I'm working in minimization problem to make sure the distance between shapes are minimum.

18555151_1860538190638448_300848701_n.png