Forum Discussion
osamashokeir
Jul 06, 2021Copper Contributor
monthly average each year
guys please help, how to calculate monthly average per year thanks for your help
Rajesh_Sinha
Jul 06, 2021Iron Contributor
This solves the issue:
How it works:
- Write first Date of each month for respected years in Column E & apply cell format mmm-yyyy.
- Enter this formula in cell F39 & fill down.
=IFERROR(AVERAGEIFS($C$39:$C$58,$B$39:$B$58,">="&$E39,$B$39:$B$58,"<="&EOMONTH($E39,0)),0)
N.B.
- Formula returns ZERO for moths, are not available in Column B.
You may use this formula also:
=IFERROR(SUMPRODUCT((MONTH($B$39:$B$58)=MONTH(E39)*(YEAR($B$39:$B$58)=YEAR(E39)))*($C$39:$C$58))/(SUMPRODUCT((MONTH($B$39:$B$58)=MONTH(E39)*(YEAR($B$39:$B$58)=YEAR(E39)))*1)),0)
Accept this as Best response as well Like, if my post solves the issue.