if the poop is hard. crying might due to colic..try to do some exercise for e baby.. can consider to use pacifier to comfort the baby.
baby crying can be due to other reasons like discomfort not necessarily due to formula milk
usually is by rejection during feeding...