M.M.
Keep trying different formulas (and cereal in the bottle) before you medicate.
As you're finding, it can take awhile to find the right one. And don't rule out the Target or Kirkland brands that are cheaper. Sometimes, it's just the consistency that does the trick.
My DD was doing exactly what you're describing (minus the crying) until we got her on Enfamil Gentlease. That's the one that worked for her. She was struggling to poop on everything else.
You might also try a gripe water called Colic Calm, which just helped to soothe their little bellies and deal with gas. It always does the trick when the issues seem to be out of hand.