How not to include a cell using the function AVERAGEIF?

Fabs_98

New Member
Joined
Oct 6, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello guys, I was wondering if someone could help me. I have a range from H5:H12 from wich I need the average but I cannot include the cell H11. Because I'm in an Excel Course, the professor asked specifically for the function AVERAGEIF but many classmates and myself included, can't find the correct criteria to not include cell H11 in the formula.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi & welcome to MrExcel.
Do you need to exclude certain values, or specific cells?
 
Upvote 0
As far as I'm aware the averageif cannot be used to exclude a particular cell. You can use it to exclude the value in a specific cell, but not just that cell.
 
Upvote 0
As far as I'm aware the averageif cannot be used to exclude a particular cell. You can use it to exclude the value in a specific cell, but not just that cell.
Hmmm interesting, well the value in the cell is $3,534.28, there are bigger and lower values on the same range. Is there a way I could use that same function with a criteria specified for that value?
 
Upvote 0
You can use
Excel Formula:
=AVERAGEIF(H5:H12,"<>"&H11)
but if the value in H11 occurs in other cells, then all of them will be ignored.
+Fluff 1.xlsm
HIJ
514.4285714
62
73
84
97
106
117
128
Main
Cell Formulas
RangeFormula
I5I5=AVERAGE(H5:H10,H12)
J5J5=AVERAGEIF(H5:H12,"<>"&H11)
 
Upvote 0
Solution
You can use
Excel Formula:
=AVERAGEIF(H5:H12,"<>"&H11)
but if the value in H11 occurs in other cells, then all of them will be ignored.
+Fluff 1.xlsm
HIJ
514.4285714
62
73
84
97
106
117
128
Main
Cell Formulas
RangeFormula
I5I5=AVERAGE(H5:H10,H12)
J5J5=AVERAGEIF(H5:H12,"<>"&H11)
YOU ARE THE ABSOLUTE BEST, THANK YOU SO MUCH, MY WHOLE CLASS APPRECIATES YOU.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,107
Messages
6,128,866
Members
449,475
Latest member
Parik11

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