AVERAGEIF based on multiple 'OR' criteria in same column

creative999

Board Regular
Joined
Jul 7, 2021
Messages
87
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
Trying to do a AVERAGEIF calculation (col J) based on possible values (with wildcards) in the same column (col F). I know AVERAGEIF cant do a or, but any way around it?

=AVERAGE(IF((DSM!$F$2:$F$1000="*DRP*")+(DSM!$F$2:$F$1000="*STD*"),DSM!$J$2:$J$1000))
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try
Excel Formula:
=AVERAGE(IF((ISNUMBER(FIND("DRP",DSM!$F$2:$F$1000)))+(ISNUMBER(FIND("STD",DSM!$F$2:$F$1000))),DSM!$J$2:$J$1000))
 
Upvote 0
Or a slightly shorter version.
Excel Formula:
=AVERAGE(IF(ISNUMBER(FIND({"STD","DRP"},DSM!$F$2:$F$1000)),DSM!$J$2:$J$1000))
 
Upvote 0
Or a slightly shorter version.
Excel Formula:
=AVERAGE(IF(ISNUMBER(FIND({"STD","DRP"},DSM!$F$2:$F$1000)),DSM!$J$2:$J$1000))

If there is now 'DRP' value, i get a DIV error. If theres no 'STD' the average calculation still works.
 
Upvote 0
Are you trying that on 365 or 2019?
 
Upvote 0
Hmm, it works for me with only STD
+Fluff 1.xlsm
DEFJ
2NY7774391
314NY7774402
4NY7774413
5STDE0912964
6STDK0637195
7STDK0657386
8STDE1163057
9STDK0547278
10STDK0845899
11STDK05973910
12STDK15576011
13STDJ97876712
14STDE07118013
15STDD95307714
16STDE12330715
17STDE04817016
18STDE07134117
19STDE06928418
20STDK05647919
21
22NY41424921
23STDO63079122
24STDD94920423
25NY90538124
26STDJ85957125
27STDE06526226
DSM
Cell Formulas
RangeFormula
D3D3=AVERAGE(IF(ISNUMBER(FIND({"STD","DRP"},DSM!$F$2:$F$989)),DSM!$J$2:$J$989))


What about the 1st formula I posted?
 
Upvote 0

Forum statistics

Threads
1,215,757
Messages
6,126,693
Members
449,331
Latest member
smckenzie2016

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