AverageIf, ignore #N/A cells

screech

Active Member
Joined
May 27, 2004
Messages
296
I am attempting to use the AVERAGEIFS function in Excel 2007. The other two criteria and criteria range I am using in the function work very well. Now I am trying to add a third criteria where any averaged cell with a #N/A error is not attempted to be averaged. Right now, it is trying to average a range of cells that may contain an #N/A error. I would like to figure out how I can use the AverageIfs function and a specific criteria to have it not average any cells that contain the error but will still average all the other cells in the range that actually contain a number. Right now, the AverageIfs function just returns an #N/A error if any of the averaged cells contain an #N/A.

The reason my averaged range contains errors (#N/A) is because I am charting that range and do not want the error data to be shown on the chart.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
I think I was able to figure it out, but I needed to go to the old way of doing AverageIfs ... with the CSE average formula with nested if statements to check if the cells I'm trying to average contain an error.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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