Average Formula and #NA Error

danielstone121

New Member
Joined
Feb 14, 2013
Messages
45
Hey Excel Gurus-
Hopefully this is an easy one for you. I just need a simple average formula but my data contains numeric values, zeros (that I need calculated into the average) and #NAs that I DON'T want calculated. Is there an average formula that will add up all numeric values including zeros but that will ignore all of the #NAs?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You might be better off eliminating the #N/A's at the source.
Can you post the formula that is producing the #N/A ? it can be adjusted to return a blank "" or whatever else you want.

Which version of Excel do you have?
 
Upvote 0
Try something like:

=average(if(isnumber(a1:a100),a1:a100))

This needs to be confirmed with control+shift+enter and not just enter.

Hope that helps.
 
Upvote 0
Thank you for your help everyone! Okay, it is Excel 2010, the numbers I am averaging are percentages, and the formula that is producing the #NA error is: =VLOOKUP(A:A,'Test Data'!A:AO,41,FALSE). Does that help? I tried the if is number configuration and all I got back is zero. I'm guessing it wasn't counting the values because they are percentages. =(
 
Upvote 0
You could try

=AVERAGEIF(B1:B100,">=0")

Assuming there are no negative values.


Or even
=AVERAGEIF(B1:B100,"<>#N/A")
 
Upvote 0
Thank you everyone! The =AVERAGEIF(B1:B100,"<>#N/A") worked perfectly! Thanks to all, but especially MrExcel MVP. Have a great day guys!
 
Upvote 0

Forum statistics

Threads
1,221,417
Messages
6,159,789
Members
451,589
Latest member
Harold14

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