using averageifs and want to ignore cells w/ errors

tdg

New Member
Joined
Feb 23, 2011
Messages
16
I have a column of data that I want to find the average for. But I have the following two conditions for the cell to be included in the average: (1) it is a number and not an error and (2) the number is in a row where a specified cell has certain text. So I want something like this:

=AVERAGEIFS(T2:T67,T2:T67,"<>""#VALUE!",I2:I67,"pre-LEV")

I want to average the range t2:t67, but first make sure there are no errors in each cell and that the cell is in a row where "pre-LEV" exists.

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You will be better served by eliminating the error at the source.

What is the formula in column T that results in the #Value! error?
It should be adjusted to return a blank instead of the error.
 
Upvote 0
Thanks. Yes, I can eliminate it at the source, but isn't there a straightforward way to do it with the averageifs command?
 
Upvote 0
Assuming all numbers are positive, you can test for >=0 instead of <>error

=AVERAGEIFS(T2:T67,T2:T67,">=0",I2:I67,"pre-LEV")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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