How to tell if I have an ulcer or gallbladder problems?

In general, . For accurate diagnosis, endoscopy is necessary for ulcer and ultrasound is necessary for gallstones. If these are not helpful, there are even more tests. So, ask your doctor if you need any of them.
Difficult. Symptoms associated with gallbladder dysfunction and ulcer disease often overlap. Ulcer disease is more often associated with burning and the symptoms are not necessarily associated with eating. Gb problems are more often manifest with eating. If a patients symptoms are not typical for gb disease, an endoscopy is recommended to rule in or out an ulcer as the cause.