Averageifs Formula with or criteria

NorthbyNorthwest

Board Regular
Joined
Oct 27, 2013
Messages
154
Office Version
  1. 365
Hello, everyone. I am having trouble constructing a formula in which I need to average with multiple conditions: both "or" conditions and "and" conditions. I started out with AVERAGEIFS and learned AVERAGEIFS is not compatible with "or." I then tried dividing two SUMPRODUCT results. I have not been able to produce an answer. I keep getting some type of error: problem with formula pop-up, DIV/0, or SPILL. I've been at this almost three hours. Hoping someone can help. I'm trying to get the average of a list of "accuracy scores" if...
  • audit month = 5/1/2021
  • review type <> "Feedback" or "OJT Feedback (Note: It seemed easier to have formula consider what it did not equal as the list of review types it could equal are five)
  • audit group = Group A or Group B
Any assistance would be greatly appreciated.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi NorthbyNorthWest,

Does this do what you want?

NorthbyNorthWest.xlsx
ABCDEF
1Audit MonthReview TypeAudit GroupScoreAudit Month
25/1/2021FeedbackA1005/1/2021
35/1/2021OJT FeedbackB200
45/1/2021FeedbackA300Result
55/1/2021FeedbackB400350
65/1/2021OJT FeedbackC500
75/1/2021Not eitherA250
85/1/2021FeedbackB350
92/2/2021OJT FeedbackA450
105/1/2021Not eitherD550
115/1/2021FeedbackD650
125/1/2021OJT FeedbackA750
135/1/2021Not eitherC850
Sheet1
Cell Formulas
RangeFormula
F5F5=SUMPRODUCT(($D$2:$D$13)*(($A$2:$A$13=$F$2)*(($B$2:$B$13="Feedback")+($B$2:$B$13="OJT Feedback"))*(($C$2:$C$13="A")+($C$2:$C$13="B"))))/SUMPRODUCT((($A$2:$A$13=$F$2)*(($B$2:$B$13="Feedback")+($B$2:$B$13="OJT Feedback"))*(($C$2:$C$13="A")+($C$2:$C$13="B"))))
 
Upvote 0
Solution
Hi NorthbyNorthWest,

Does this do what you want?

NorthbyNorthWest.xlsx
ABCDEF
1Audit MonthReview TypeAudit GroupScoreAudit Month
25/1/2021FeedbackA1005/1/2021
35/1/2021OJT FeedbackB200
45/1/2021FeedbackA300Result
55/1/2021FeedbackB400350
65/1/2021OJT FeedbackC500
75/1/2021Not eitherA250
85/1/2021FeedbackB350
92/2/2021OJT FeedbackA450
105/1/2021Not eitherD550
115/1/2021FeedbackD650
125/1/2021OJT FeedbackA750
135/1/2021Not eitherC850
Sheet1
Cell Formulas
RangeFormula
F5F5=SUMPRODUCT(($D$2:$D$13)*(($A$2:$A$13=$F$2)*(($B$2:$B$13="Feedback")+($B$2:$B$13="OJT Feedback"))*(($C$2:$C$13="A")+($C$2:$C$13="B"))))/SUMPRODUCT((($A$2:$A$13=$F$2)*(($B$2:$B$13="Feedback")+($B$2:$B$13="OJT Feedback"))*(($C$2:$C$13="A")+($C$2:$C$13="B"))))
Yes. I was all around the solution. I am oftentimes thrown by the parenthesis when dealing with long formulas with multiple conditions. Add nested conditions to the formula, and... Thanks so much for rescuing me. I cannot express how great this forum has been to me over the years. Have a wonderful weekend Toadstool.
 
Upvote 0
Yes. I was all around the solution. I am oftentimes thrown by the parenthesis when dealing with long formulas with multiple conditions. Add nested conditions to the formula, and... Thanks so much for rescuing me. I cannot express how great this forum has been to me over the years. Have a wonderful weekend Toadstool.
You're welcome, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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