average multiple criteria

billandrew

Well-known Member
Joined
Mar 9, 2014
Messages
743
Hello All

My question this afternoon, Is there an alternate way to average December January & February

The formula I am using is

={SUM(SUMIFS($B$5:$B$16,$A$5:$A$16,{"December","January","February"}))/SUM(COUNTIFS($A$5:$A$16,{"December","January","February"}))}


January25
February36
March35
April24
May15
June18
July65
August25
September36
October45
November12
December32

<tbody>
</tbody>
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
If you make a list of the months, you can do this:

ABCDEF
4Months
5January253131December
6February3631January
7March35February
8April24
9May15
10June18
11July65
12August25
13September36
14October45
15November12
16December32
17

<tbody>
</tbody>
Sheet9

Worksheet Formulas
CellFormula
D5=SUM(SUMIFS($B$5:$B$16,$A$5:$A$16,{"December","January","February"}))/SUM(COUNTIFS($A$5:$A$16,{"December","January","February"}))

<tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
E5{=AVERAGE(IF(ISNUMBER(MATCH(A5:A16,F5:F7,0)),B5:B16))}
E6{=AVERAGE(IF(ISNUMBER(MATCH(A5:A16,{"December","January","February"},0)),B5:B16))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



You can make an external list, or internal to the formula.
 
Last edited:
Upvote 0
Hi, to both of you!

Another options could be:


Book1
ABCDEF
5January253131December
6February36January
7March35February
8April24
9May15
10June18
11July65
12August25
13September36
14October45
15November12
16December32
Hoja1
Cell Formulas
RangeFormula
D5=AVERAGE(SUMIF(A5:A16,{"December";"January";"February"},B5:B16))
E5{=AVERAGE(IF(COUNTIF(F5:F7,A5:A16),B5:B16))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Blessings!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,411
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top