ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I ignore "#N/A" data in a column while calculating average (https://www.excelbanter.com/excel-worksheet-functions/212587-how-do-i-ignore-n-data-column-while-calculating-average.html)

Tuan

How do I ignore "#N/A" data in a column while calculating average
 
How do I ignore "#N/A" data in a column while calculating average

T. Valko

How do I ignore "#N/A" data in a column while calculating average
 
Try one of these:

=SUMIF(A1:A10,"<1E100")/COUNT(A1:A10)

This one is an array formula** :

=AVERAGE(IF(ISNUMBER(A1:A10),A1:A10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Tuan" wrote in message
...
How do I ignore "#N/A" data in a column while calculating average




Shane Devenshire[_2_]

How do I ignore "#N/A" data in a column while calculating average
 
Hi,

Try this array entered formula

=AVERAGE(IF(ISNA(B1:B7),"",B1:B7))

being an array you must enter it by pressing Shift+Ctrl+Enter

In 2007 you can use

=AVERAGEIF(B1:B7,"<9E9")


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Tuan" wrote:

How do I ignore "#N/A" data in a column while calculating average



All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com