Formula question!

My baby has been on Similac Sensitive for about three months with no problems but for the past three weeks she has had horrible constipation with solid bms (hasn't started solids yet). We tried everything the pedi told us but with no luck. She also won't see us till our next visit. Any suggestions on formula that will help with this but also the lactose sensitivity?