HELP AVERAGEIFS: Partially Match Text

Xiangwu

New Member
Joined
Feb 17, 2014
Messages
25
Hi, All.

It's my first post, but I do need help. I need to average the numbers that one criteria does not exactly match the title. See the example.

Domestic API5L/X42$5.4
Imported API5L/X42$4.7
ERW API5L/X42, FBE$3.8

Average API5L/X42
=averageifs()

<tbody>
</tbody>

Need to get this work done. So, Waiting for the answer online.

Thank you guys, so much!

Xiangwu
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Helo Xiangwu, welcome to MrExcel

Try using AVERAGEIFS with wildcards like this:

=AVERAGEIF(A:A,"*API5L/X42*",B:B)
 
Upvote 0
Thank you for your welcoming, Barry.

I have some other tables in the spreadsheet, so I can not use the wildcards. Also, *API5L/X42* means the text is in the middle of the title, but actually, API5L/X42 may be in the middle, at the end or in the front. I tried and it does not work well. Wondering whether you have any other ideas.

:)

Helo Xiangwu, welcome to MrExcel

Try using AVERAGEIFS with wildcards like this:

=AVERAGEIF(A:A,"*API5L/X42*",B:B)
 
Upvote 0
I have some other tables in the spreadsheet, so I can not use the wildcards.

Why not? Do you mean you need other conditions too? If so you can use AVERAGEIFS to introduce further conditions

*API5L/X42* means the text is in the middle of the title, but actually, API5L/X42 may be in the middle, at the end or in the front

The * wildcard denotes any number of characters, including zero, so using *API5L/X42* will include any row with the value API5L/X42, whether at the start, end or middle....or even if it's the entire cell contents
 
Upvote 0
Ok, I see what you mean. That's smart. I was trapped with other tables after mentioned the wildcards.


Why not? Do you mean you need other conditions too? If so you can use AVERAGEIFS to introduce further conditions



The * wildcard denotes any number of characters, including zero, so using *API5L/X42* will include any row with the value API5L/X42, whether at the start, end or middle....or even if it's the entire cell contents
 
Upvote 0

Forum statistics

Threads
1,215,577
Messages
6,125,637
Members
449,242
Latest member
Mari_mariou

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