Function Problems

How to Calculate an Automatically Updating Year-to-Date Average in Excel

Huma Ashraf ChHuma Ashraf Ch Oct 21, 2026 870 views

Question details

The user needs a formula to calculate a year-to-date (YTD) average that updates automatically when new monthly data is entered, without counting future blank months in the divisor.

How to Calculate an Automatically Updating Year-to-Date Average in Excel
Product
Excel
Device & OS
not provided
Scenario
Tracking monthly financial or performance data where future months are currently empty, requiring a dynamic calculation.
Observed behavior
A static average formula divides by 12, lowering the result incorrectly. The desired state is a dynamic divisor that only counts the months that have data entered.
Before you start

Ensure your monthly data is arranged in a continuous range and that future month cells are completely empty, containing no spaces, hidden characters, or invisible formatting.

Solution 1Recommended

Use the Standard AVERAGE Function for Blank Cells

The simplest method relies on the built-in behavior of the AVERAGE function, which naturally ignores empty cells when calculating the divisor.

Excel's default AVERAGE function only counts cells containing numbers. If your future monthly columns are truly blank, you do not need a complex dynamic range formula.

1
Select the Target Cell

Click on the cell where you want your year-to-date average to be displayed.

2
Enter the AVERAGE Formula

Type `=AVERAGE(I17:T17)` into the formula bar, replacing I17:T17 with the actual range containing your January to December data.

3
Apply the Formula

Press Enter. If you have data in three months, Excel will divide the total by 3. As you enter data into the fourth month, it will automatically adjust to divide by 4.

Use the Standard AVERAGE Function for Blank Cells
Handling Zeroes: The AVERAGE function ignores blank cells but includes cells containing a numeric 0. If you type a 0 for a month, it will increase the divisor.
Efficient Spreadsheet Management

Calculate Dynamic Averages Effortlessly in WPS Spreadsheet

WPS Spreadsheet provides robust support for all standard financial and statistical formulas, allowing you to easily track year-to-date metrics. It handles dynamic calculations seamlessly, ensuring your data analysis is accurate and up to date.

  1. 1. Open Your Data: Launch WPS Spreadsheet and open the document containing your monthly tracking data.
  2. 2. Select the Target Cell: Click on the cell where you want the automated year-to-date average to be displayed.
  3. 3. Enter the Formula: Type `=AVERAGE(range)` directly into the cell or use the Function Library under the Formulas tab.
  4. 4. Apply and Automate: Press Enter. The cell will now automatically update its average divisor as you input new monthly values.
100% compatible with Microsoft Excel formulas including AVERAGE, SUM, and COUNTFree and lightweight data analysis tool for personal and business useFamiliar user interface for immediate productivity and easy migration
microsoft office alternative - wps office

Frequently Asked Questions

How can I exclude zero values from my year-to-date average?

If you want to ignore months where the value is exactly zero, use the AVERAGEIF function. For example, enter `=AVERAGEIF(I17:T17, ">0")` to only calculate the average of months with numbers greater than zero.

Why is my average formula dividing by 12 even when some months look blank?

The standard AVERAGE function ignores truly empty cells. If it is dividing by 12, those 'blank' cells likely contain hidden spaces, formatting anomalies, or formulas returning zero. Try highlighting the blank cells and pressing the Delete key to clear them completely.

Does the COUNT function ignore text strings?

Yes, the standard COUNT function only counts cells containing numeric values. If your future months contain formulas that output text strings like "", COUNT will ignore them, making the `=SUM(range)/COUNT(range)` method highly effective.