Need Help With AverageIF with specific text

edisnotsmart

New Member
Joined
Aug 9, 2017
Messages
4
I am trying to find the average of specific states (four to be exact, Alaska, Nevada, Florida and Texas) in my list of excel but I keep getting errors.

I've tried: =AVERAGEIF(A1:A10,"*Texas*","*Nevada*","*Florida*","*Alaska*",B1:B10) but its tell me I have too many arguments. Can anyone help me find a solution to average multiple specific states?

Column A
Cell 1: Texas
Cell 2: Florida
Cell 3: Colorado
Cell 4: Maine
Cell 5: Nevada
Cell 6: Alaska
Cell 7: Texas
Cell 8: Nevada
Cell 9: Florida
Cell 10: Utah

Column B
Cell 1: 138
Cell 2: 148
Cell 3: 982
Cell 4: 458
Cell 5: 256
Cell 6: 125
Cell 7: 236
Cell 8: 123
Cell 9: 258
Cell 10: 236
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
=SUMPRODUCT((A1:A10="Texas")+(A1:A10="Nevada")+... ;B1:B10)/SOMPRODUCT((A1:A10="Texas")+(A1:A10="Nevada")+...*1)
 
Upvote 0
Try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCD
1Texas138183.429
2Florida148
3Colorado982
4Maine458
5Nevada256
6Alaska125
7Texas236
8Nevada123
9Florida258
10Utah236
Sheet
 
Upvote 0
=SUMPRODUCT((A1:A10="Texas")+(A1:A10="Nevada")+... ;B1:B10)/SOMPRODUCT((A1:A10="Texas")+(A1:A10="Nevada")+...*1)

For some reason it doesn't allow me to get past =SUMPRODUCT((A1:A10="Texas")+(A1:A10="Nevada") when I start putting ;B1:B10 I get a notification saying that they found something wrong with the formula. Can't figure out what tho. Thank you for replying back!
 
Upvote 0
This actually worked!! Thank you, really appreciate it. This was driving me crazy!

---
Try:
This is an array formula and must be entered with CTRL-SHIFT-ENTER.

ABCD
1 Texas138 183.429
2 Florida148
3 Colorado982
4 Maine458
5 Nevada256
6 Alaska125
7 Texas236
8 Nevada123
9 Florida258
10 Utah236

<colgroup><col style="width:30px; "><col style="width:102px;"><col style="width:64px;"><col style="width:39px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
D1{=AVERAGE(IF(ISNUMBER(SEARCH({"Texas","Nevada","Florida","Alaska"},A1:A10)),B1:B10))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,215,111
Messages
6,123,152
Members
449,098
Latest member
Doanvanhieu

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