Is there a general formula for solving cubic equations?
Yes there is! What you are referring to is
an explicit solution, or solution by 'radicals'. You have probably
seen this sort of solution when dealing with quadratics. For
cubics, the formula is not as easily stated. It involves rewriting
the formula in the form x3 + Ax =
B. Rather than give all the details here, I'll refer you to
cubic solution.
In fact you can solve any polynomial up to the fourth degree
explicitly (or by radicals). The fact that the quintic (degree 5)
is not in general soluble by radicals is the famous crowning glory
of Galois Theory.