Less common causes of inadequate vitamin B12 absorption include chronic pancreatitis, gastric or bariatric surgery, malabsorption syndromes, AIDS, use of certain drugs (eg, antacids, metformin), repeated exposure to nitrous oxide, and a genetic disorder causing malabsorption in the ileum (Imerslund-Graesbeck syndrome).