Average Formula with an OR Criteria

coldwolf2000

New Member
Joined
Jun 6, 2011
Messages
2
I have a question about an average formula.

Below is the forumla I am using:
=IFERROR(AVERAGEIFS('MONTH TO DATE RAW DATA'!E:E,'MONTH TO DATE RAW DATA'!C:C,A30,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO"),"0")

I am having it look at raw data on sheet 'MONTH TO DATE RAW DATA' and if comes across any that equals what is in cell A30 then average. I would like to do a OR statement where either match A30 or A31. How would I accomplish that.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Maybe try something like this...
Code:
=(SUMIFS('MONTH TO DATE RAW DATA'!E:E,'MONTH TO DATE RAW DATA'!C:C,A30,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO")+
SUMIFS('MONTH TO DATE RAW DATA'!E:E,'MONTH TO DATE RAW DATA'!C:C,A31,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO"))/
(COUNTIFS('MONTH TO DATE RAW DATA'!C:C,A30,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO")+
COUNTIFS('MONTH TO DATE RAW DATA'!C:C,A31,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO"))


=(SUMIFS(A30))+SUMIFS(A31)) / (COUNTIFS(A30)+COUNTIFS(A31))
 
Upvote 0
Maybe try something like this...
Code:
=(SUMIFS('MONTH TO DATE RAW DATA'!E:E,'MONTH TO DATE RAW DATA'!C:C,A30,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO")+
SUMIFS('MONTH TO DATE RAW DATA'!E:E,'MONTH TO DATE RAW DATA'!C:C,A31,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO"))/
(COUNTIFS('MONTH TO DATE RAW DATA'!C:C,A30,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO")+
COUNTIFS('MONTH TO DATE RAW DATA'!C:C,A31,'MONTH TO DATE RAW DATA'!AJ:AJ,"NO"))


=(SUMIFS(A30))+SUMIFS(A31)) / (COUNTIFS(A30)+COUNTIFS(A31))


that seemed to work.

Thanks
 
Last edited:
Upvote 0
so with your formula it should looks something like this:
=AVERAGE(IF(('MONTH TO DATE RAW DATA'!C:C={A30,A31})*('MONTH TO DATE RAW DATA'!AJ:AJ="NO"),'MONTH TO DATE RAW DATA'!E:E))
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

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