How to Calculate YTD (Year-To-Date) Average in Excel (4 Approaches)

Method 1 – Calculate YTD Average Using Excel AVERAGE Function

For calculating the year-to-date average, we are going to use the following dataset. The dataset contains some dates in column B, the total number of sales within those dates in column C and we want to calculate the average of year-to-date sales in column D.

Calculate YTD Average Using Excel AVERAGE Function

STEPS:

  • Select the cell where you want to put the formula to calculate the YTD average. For the sample, we selected cell D5.
  • Enter the formula below into the selected cell.
=AVERAGE($C$5,C5)
  • Press Enter.

Calculate YTD Average Using Excel AVERAGE Function

  • It will output the YTD average.
  • To copy the formula over the range, drag the Fill Handle down. Or, double-click on the plus (+) sign to AutoFill the range.

Calculate YTD Average Using Excel AVERAGE Function

  • It will output the average year-to-date sales in column D.

Calculate YTD Average Using Excel AVERAGE Function

How Does the Formula Work?

The formula will calculate the YTD average, the dollar sign ($) refers to an absolute reference. By using the cell references as absolute reference $C$5 we just fixed the cell. This cell will be constant now as this is the first sale on those dates.

Read More: How to Calculate YTD (Year-to-Date) in Excel


Method 2 – Apply SUM Function to Calculate YTD Average

The sample dataset has dates in column B, the quantity of the sold product in column C, the total price for those products on that particular date in column D, and we want to calculate the YTD average of the products for the given dates in column E.

STEPS:

  • Choose the cell (E5) where you want the YTD average formula.
  • Add the formula below into the selected cell.
=SUM($D$5:D5)/SUM($C$5:C5)
  • Press Enter.

Apply SUM Function to Calculate YTD Average

  • It will output the YTD average.
  • Drag the Fill Handle down or double-click on the plus (+) symbol to AutoFill the range.

Apply SUM Function to Calculate YTD Average

  • Column E will be filled with the average year-to-date of the products for the given month.

How Does the Formula Work?

The focus of this formula is the division between two consecutive values for price and quantity. The dividend of this equation is the sum of the product prices, whereas the divisor component is the sum of the product quantities using the SUM function.

Read More: How to Calculate MTD (Month to Date) in Excel


Method 3 – Use SUMPRODUCT Function to Calculate YTD Average in Excel

We will use the same dataset as in the second method.

STEPS:

  • Add the formula below in cell E5.
=SUMPRODUCT($D$5:D5)/SUMPRODUCT($C$5:C5)
  • Press Enter.

  • It will output the YTD average.
  • Drag the Fill Handle down or double-click on the plus (+) symbol to AutoFill the range.

  • Column E will show the average year-to-date.

Read More: How to Calculate YTD (Year to Date) in Excel


Method 4 – Merging SUM and COUNTIF Functions to Calculate YTD Average

The dataset has dates in column B, and the weekly income in column C, and in column D we will get the YTD average excluding zero values.

STEPS:

  • Add the formula below in cell D5.
=SUM(C5:C10)/COUNTIF(C5:C10,"<>0")
  • Press Enter.

  • It will output the YTD average.
  • Drag the Fill Handle down or double-click on the plus (+) symbol to AutoFill the range.

  • Column D will display the average year-to-date.

How Does the Formula Work?

The SUM function will sum the values in the range C5:C10. We divide the total sum for each cell value with the COUNTIF function, which will count the number of cells excluding zero values.

Read More: Excel Year to Date Sum Based on Month


Download Practice Workbook


<< Go Back to Excel Formulas for Finance|Excel for Finance|Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Sabrina Ayon
Sabrina Ayon

Sabrina Ayon, a Computer Science and Engineering graduate from United International University, has been an integral part of the ExcelDemy project for two years. She authored 150+ articles, excelling in instructing through visually engaging Excel tutorials. With a passion for teaching, Sabrina conducted sessions on Excel VBA, sharing her knowledge and insights with others. Currently holding the position of Project Manager for the ExcelDemy Visual Development Project, she oversees various aspects of the project, ensuring its smooth operation... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo