Hba1C test is a blood test that shows what your average blood sugar (glucose) level was over the past three months. Tests are done to diagnose prediabetes or diabetes in patients. Prediabetes indicates the risk of developing diabetes. In cases of known diabetes, Hba1c is used to monitor the condition.