Calculate Daily High, Low, and Average Glucose in Excel
Question details
Calculate the daily high, low, and average of glucose readings when the number of measurements varies by day.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Glucose measurements are recorded on different dates, with a varying number of readings each day.
- Observed behavior
- The desired summary shows the maximum, minimum, and average reading for each selected date.
Arrange the data with one measurement per row and separate Date and Reading columns. Make sure dates are recognized as dates, contain no time component, and each reading is numeric.
Use an Excel Table and conditional formulas
Use this method to include new readings automatically, regardless of how many measurements are recorded each day.
Select the Date and Reading columns, including their headers, and choose Insert > Table. Confirm that your table has headers.
Click inside the table and use Table Design > Table Name to name it Glucose. Keep the column headers Date and Reading.
Enter Date, High, Low, and Average as headers in cells E1:H1. Enter each date you want to summarize in column E, starting at E2.
In F2, enter =IF(COUNTIF(Glucose[Date],E2)=0,"",MAXIFS(Glucose[Reading],Glucose[Date],E2)). In G2, enter =IF(COUNTIF(Glucose[Date],E2)=0,"",MINIFS(Glucose[Reading],Glucose[Date],E2)). In H2, enter =IF(COUNTIF(Glucose[Date],E2)=0,"",AVERAGEIFS(Glucose[Reading],Glucose[Date],E2)).
Select F2:H2 and drag the fill handle down beside the dates in column E. Add new measurements in rows directly below the table; the table ranges and summaries will expand to include them.

Summarize Daily Glucose Readings in WPS Spreadsheets
Use a table and conditional formulas in WPS Spreadsheets to calculate daily high, low, and average readings as you add measurements.
- 1. Open the readings: Open your workbook in WPS Spreadsheets and arrange the measurements in Date and Reading columns, with one reading per row.
- 2. Create and name a table: Select the data and choose Insert > Table. Name the table Glucose and keep its column headers as Date and Reading.
- 3. Add summary dates: Enter dates to summarize in column E, starting at E2, and add High, Low, and Average headers in F1:H1.
- 4. Calculate the results: In F2 enter =MAXIFS(Glucose[Reading],Glucose[Date],E2), in G2 enter =MINIFS(Glucose[Reading],Glucose[Date],E2), and in H2 enter =AVERAGEIFS(Glucose[Reading],Glucose[Date],E2). Drag the formulas down for the remaining dates.

Frequently Asked Questions
Will the formulas include new glucose readings automatically?
Yes. Add each reading in a new row directly below the Excel Table. The Glucose table references expand as the table grows, and formulas update for dates already listed in the summary.
Do I need the same number of readings every day?
No. MAXIFS, MINIFS, and AVERAGEIFS evaluate all readings whose Date value matches the summary date, whether there is one reading or many.
What if my date column also contains times?
Create a date-only column using a formula such as =INT(A2), format the result as a date, and use that column as the date range in your summary formulas.
Why is a summary result blank?
The Excel formulas above return a blank when COUNTIF finds no matching date. Check that the summary date and table dates are real dates without time components, and that the table contains a reading for that day.
Will these formulas work in older versions of Excel?
MAXIFS and MINIFS are available in Excel 2019 and later and Microsoft 365. In an older version, use Insert > PivotTable and add Reading to the Values area three times, setting the summaries to Max, Min, and Average.




