For example lactose intolerance
is a notorious cause of bloating and flatulence
. It can come on later in life at times. If you can't find anything else, it might be worth considering a diary-free trial. If you clear up when you stop all dairy and the symptoms return when you restart dairy then you have found the cause. If you want to drink milk use lactaid milk.
Answer assisted by David Miller, Medical Student