Averageif for multiple criteria in same column

creative999

Board Regular
Joined
Jul 7, 2021
Messages
85
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
How do i get multiple criteria in same column (column A) to work with averageif... example:

=AVERAGEIFS(Z2:Z500,P2:P500,"<>NEW",A2:A500,"APPROVED",A2:A500,"TEMPAPPROVED")
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Creative999,

AVERAGEIFS doesn't have an OR option. If column A APPROVED or TEMPAPPROVED are the only options containing APPROVED then you could use a wildcard (as in AA2) or you can change to using SUMPRODUCT (as in AA3).

Creative999.xlsx
AOPZAA
1StatusStatus2NumberResults
2APPROVEDNEW516
3APPROVEDOLD1516
4TEMPAPPROVED17
5DogCat35
6
Sheet1
Cell Formulas
RangeFormula
AA2AA2=AVERAGEIFS(Z2:Z500,P2:P500,"<>NEW",A2:A500,"*APPROVED")
AA3AA3=SUMPRODUCT((Z2:Z500)*((P2:P500<>"NEW")*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED"))))/SUMPRODUCT((P2:P500<>"NEW")*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED")))
 
Upvote 0
Hi Creative999,

AVERAGEIFS doesn't have an OR option. If column A APPROVED or TEMPAPPROVED are the only options containing APPROVED then you could use a wildcard (as in AA2) or you can change to using SUMPRODUCT (as in AA3).
Thanks, I actually need two exclusions... For example,

=SUMPRODUCT((Z2:Z500)*((P2:P500<>"NEW")+(P2:P500<>"OLD")*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED"))))/SUMPRODUCT((P2:P500<>"NEW")+(P2:P500<>"OLD")*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED")))

But this gives a #VALUE! error.
 
Upvote 0
You have some of the brackets in the wrong place, try it like
Excel Formula:
=SUMPRODUCT((Z2:Z500)*((P2:P500<>"NEW")+(P2:P500<>"OLD"))*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED")))/SUMPRODUCT(((P2:P500<>"NEW")+(P2:P500<>"OLD"))*((A2:A500="APPROVED")+(A2:A500="TEMPAPPROVED")))
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,183
Members
449,071
Latest member
cdnMech

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