Average, but ignore =NA() HELP!!

Nick24

New Member
Joined
Dec 1, 2014
Messages
9
I have 3 tables, each has 39 rows and 5 columns.

They are located in the same columns (I-M), above each other. (with a few rows in-between, and titles)

Each cell in the 3 tables contains either a number from 6-100, to two decimal places or an =NA().

I'm trying to make a new table at the bottom, that gets an average cells in the same position of each table. e.g C8, C55, C102.

Sometimes I will have 3 values and I can get a good average, sometimes I have 2 and an =NA(), other times I have 1 Value and 2 =NA()

The problem is, all of these values in the tables are the values for graphs, and for empty values I have had to write '=NA()' so that the graphs don't mess up.

This is the best formula I have found,

=AVERAGE(IF(ISNUMBER(K23),K23),IF(ISNUMBER(K70),K70),IF(ISNUMBER(K117),K117)).

However, this only takes =NA() as zero, and ruins my averages by dropping them down. However when the three values don't have a =NA() it works fine.

Please does someone have a fix for this? I Cant use array formulas as they are not directly next to/above/below each other.

Thanks.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Which version of Excel are you using?

Is there anything common in an adjescent column that indicates which cell needs to be averaged, like a name or something in say column A
So we could do something like
Average column K IF the corresponding value in column A = "fred" (or whatever)
?

See if you can post a sample of your sheet
See my signature for a link to an HTML tool that will help you post a nicely formatted table.
 
Last edited:
Upvote 0
Here is one option, it requires array entry:

=AVERAGE(IF(ISNUMBER(CHOOSE({1,2,3},K23,K70,K117)),CHOOSE({1,2,3},K23,K70,K117)))
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,922
Members
449,195
Latest member
Stevenciu

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