AVERAGEIFS based on dynamic partial text match

kingspur06

Board Regular
Joined
Apr 24, 2007
Messages
52
Hi - I am trying to figure out if there is a way to trigger a partial text lookup against another cell within the AVERAGEIFS formula.
In the below example, I can get an average just by creating a static formula that shows the text I am searching for.
But I want to be able to enter a value in Cell E6 and have the formula do a search for anything that contains that particular text.
I don't know how to use wildcards against a cell reference.

Also, it would be great if there was a way to make the AVERAGEIFS function ignore any values that are 0, so in the Apple example, instead of giving the answer as 5, it would show as 6.

Any suggestions greatly welcomed!
many thanks
Mark


Book1
ABCDE
1APPLE 17
2APPLE 24Static Formula5
3APPLE 36
4APPLE 48
5APPLE 55
6APPLE 60SelectionApple
7BANANA 17
8BANANA 24
9BANANA 35
10BANANA 48
11BANANA 52
12BANANA 60
Sheet1
Cell Formulas
RangeFormula
E2E2=AVERAGEIFS(B:B,A:A,"*apple*")
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
It should be
Excel Formula:
=AVERAGEIFS(B:B,B:B,">0",A:A,"*"&E6&"*")
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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