Forum Discussion

Donaldinho's avatar
Donaldinho
Copper Contributor
Dec 14, 2022
Solved

Average of a column, row by row, depending on a date (year)

Hi, I am trying to create a column that will give me an average of column F, "Kvm2" depending on the year in Date column D, "Dato". So, in Column H I want the average of all Kvm2 values that are i...
  • Patrick2788's avatar
    Patrick2788
    Dec 15, 2022

    Donaldinho 

    Try this one (Press Ctrl+Shift+Enter if not working in Excel 2021 or Excel 365):

     

    =AVERAGE(IF(YEAR([@Dato])=YEAR([Dato]),[Kvm2]))

     

Resources