Bear Member Feb 21, 2019 #1 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
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.
V vletm Excel Ninja Feb 21, 2019 #2 Bear =AVERAGEIFS(B:B,A:A,">="&DATE(YEAR(D2),MONTH(D2),1),A:A,"<="&EOMONTH(D2,0))
B bosco_yip Excel Ninja Feb 21, 2019 #3 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
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
R rahulshewale1 Active Member Feb 22, 2019 #4 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
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
Bear Member Feb 22, 2019 #5 vletm said: Bear =AVERAGEIFS(B:B,A:A,">="&DATE(YEAR(D2),MONTH(D2),1),A:A,"<="&EOMONTH(D2,0)) Click to expand... Thanks vletm! Your formual works perfectly.
vletm said: Bear =AVERAGEIFS(B:B,A:A,">="&DATE(YEAR(D2),MONTH(D2),1),A:A,"<="&EOMONTH(D2,0)) Click to expand... Thanks vletm! Your formual works perfectly.
Bear Member Feb 22, 2019 #6 bosco_yip said: 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 Click to expand... Thanks Bosco~ Thank you for your help. I learnt something new from you.
bosco_yip said: 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 Click to expand... Thanks Bosco~ Thank you for your help. I learnt something new from you.