Several types of imaging tests may be used to diagnose pancreatic cancer: CT scans help determine if cancer is present and has spread and may guide a biopsy. MRIs are used for those who can’t undergo CT scans or when other tests are inconclusive. Ultrasounds may be done from outside the abdomen or via an endoscope that’s inserted into the digestive tract.