How long did it take to find right formula for your previously BF newborn?

KT
We have tried Enfamil he acted as if it tasted awful. I don't know what to do