Metformin is designed to treat both diabetes and insulin resistance. Both diabetes and insulin resistance have been linked to endometrial cancer. Although you do not have a diagnosis of diabetes, metformin may still have an affect on your cancer cells.