• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Averageif function match month & year

Bear

Member
Hi

Would you help to correct my averageif formual?

How can I get a average figures if the data fall in specific month & year? e.g. I wanna get the average sales if it falls in Oct 2018.

Thanks.
 

Attachments

  • AverageIf.xlsx
    13.3 KB · Views: 16
hii @Bear,


try this one
Just enter...

=SUMIFS(B2:B3300,A2:A3300,">="&D2,A2:A3300,"<="&EOMONTH(D2,0))/COUNTIFS(A2:A3300,">="&D2,A2:A3300,"<="&EOMONTH(D2,0))


Regard
Rahul shewale
 
Or,

try this array formula in E2, confirm enter with CTRL+SHIFT+ENTER (CSE) instead of just enter :

=AVERAGE(IF(TEXT(A2:A330,"mmmyy")=TEXT(D2,"mmmyy"),B2:B330))

Regards
Bosco
Thanks Bosco~
Thank you for your help. I learnt something new from you.
 
Back
Top