Averageifs: Using multiple text criterias

eg1400

New Member
Joined
Oct 21, 2017
Messages
5
Hello,

I am trying to obtain the average of cells in a column. The cells in the column need to be averaged only if they contain "w_" or "wd_".

Below is the formula I am trying:
=AVERAGEIFS('All Data'!S:S, 'All Data'!B:B,"w_*", 'All Data'!B:B,"wd_*")

I keep getting a #DIV/0! error.

This formula works fine if I use only one of the criteria that the cells must contain.
Example: =AVERAGEIFS('All Data'!S:S, 'All Data'!B:B,"w_*")

I searched the forums for similar questions and found them, but none of their solutions seem to be working for me.

Thank you very much for your time!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try:

=SUM(SUMIFS('All Data'!S:S, 'All Data'!B:B,{"w_*","wd_*"}))/SUM(COUNTIFS('All Data'!B:B,{"w_*","wd_*"}))
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,548
Members
449,735
Latest member
Gary_M

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