The HbA1c test measures the amount of glucose adhered to hemoglobin in red blood cells. Hemoglobin is the part of the blood cell that carries oxygen. Glucose molecules in the bloodstream stick to hemoglobin and remain there for the life of the cell, about 120 days.