Forum Discussion
osamashokeir
Jul 05, 2021Copper Contributor
monthly average each year
guys please help,
how to calculate monthly average per year
thanks for your help
3 Replies
- Rajesh_SinhaIron 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.
- SergeiBaklanDiamond Contributor
Simplest way is to create PivotTable aggregating on average.
Create a PivotTable to analyze worksheet data - Office Support (microsoft.com)
- LorenzoSilver Contributor
Welcome to your Excel discussion space!
If you’re looking to ask a question or start a conversation about Excel, you’re in the right place! Ask away.
Please include the following info to help others answer your question:
- Device and OS platform, e.g., PC/Windows 10 (see Which version of Windows operating system am I running?) or Mac/macOS Big Sur 11.2.1 (see Find out which macOS your Mac is using)
- Excel product name and version number (see About Office: What version of Office am I using?)
- Excel file you’re working with or sample file with data – please remove all confidential and PII data
- As much context of what you're trying to do - and why - as possible, e.g., how what you're trying to do fits into what larger process or workflow*
- Expected result and method to achieve the result**
Once you got a good answer to your question, please accept it as solution to help others looking for answer to the same/similar question.