Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Getting averages from a column

Hi, I would like to work out the average from a column of numbers but where
no data is available, it reads #N/A or #REF! So I can not use the automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.

  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Getting averages from a column

assuming your data is in a1:a8 and you want to exclude 0 values, try

=SUM(IF(ISNUMBER(A1:A8),A1:A8))/COUNTIF(A1:A8,"0")

entered using Cntrl+Shift+Enter

"tommy" wrote:

Hi, I would like to work out the average from a column of numbers but where
no data is available, it reads #N/A or #REF! So I can not use the automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Getting averages from a column

I think any average would be influenced by any zeros in the column

Does that mean you want to exclude 0?

This will exclude 0 and any errors. Array entered** :

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

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


--
Biff
Microsoft Excel MVP


"tommy" wrote in message
...
Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Getting averages from a column

You can use SUMIF and normally enter (assuming no -ve values with the
COUNTIF):

=SUMIF(A1:A8,"<1E100")/COUNTIF(A1:A8,"0")

--
Biff
Microsoft Excel MVP


"JMB" wrote in message
...
assuming your data is in a1:a8 and you want to exclude 0 values, try

=SUM(IF(ISNUMBER(A1:A8),A1:A8))/COUNTIF(A1:A8,"0")

entered using Cntrl+Shift+Enter

"tommy" wrote:

Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Getting averages from a column

Thanks I'll give it a go.

"JMB" wrote:

assuming your data is in a1:a8 and you want to exclude 0 values, try

=SUM(IF(ISNUMBER(A1:A8),A1:A8))/COUNTIF(A1:A8,"0")

entered using Cntrl+Shift+Enter

"tommy" wrote:

Hi, I would like to work out the average from a column of numbers but where
no data is available, it reads #N/A or #REF! So I can not use the automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Getting averages from a column

Thanks I'll give it a go.

"T. Valko" wrote:

I think any average would be influenced by any zeros in the column


Does that mean you want to exclude 0?

This will exclude 0 and any errors. Array entered** :

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

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


--
Biff
Microsoft Excel MVP


"tommy" wrote in message
...
Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Getting averages from a column

Hi, I tried this and it worked great, thank you.

"T. Valko" wrote:

I think any average would be influenced by any zeros in the column


Does that mean you want to exclude 0?

This will exclude 0 and any errors. Array entered** :

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

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


--
Biff
Microsoft Excel MVP


"tommy" wrote in message
...
Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Getting averages from a column

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"tommy" wrote in message
...
Hi, I tried this and it worked great, thank you.

"T. Valko" wrote:

I think any average would be influenced by any zeros in the column


Does that mean you want to exclude 0?

This will exclude 0 and any errors. Array entered** :

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

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


--
Biff
Microsoft Excel MVP


"tommy" wrote in message
...
Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think
any
average would be influenced by any zeros in the column, Can any one
help.
Thanks in advance, Tommy.






  #9   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Getting averages from a column

Good catch on the negative values. Maybe change the countif to count.

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


"T. Valko" wrote:

You can use SUMIF and normally enter (assuming no -ve values with the
COUNTIF):

=SUMIF(A1:A8,"<1E100")/COUNTIF(A1:A8,"0")

--
Biff
Microsoft Excel MVP


"JMB" wrote in message
...
assuming your data is in a1:a8 and you want to exclude 0 values, try

=SUM(IF(ISNUMBER(A1:A8),A1:A8))/COUNTIF(A1:A8,"0")

entered using Cntrl+Shift+Enter

"tommy" wrote:

Hi, I would like to work out the average from a column of numbers but
where
no data is available, it reads #N/A or #REF! So I can not use the
automatic
system found in auto sum, is there any way around this. Also I think any
average would be influenced by any zeros in the column, Can any one help.
Thanks in advance, Tommy.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
first ten and last ten averages aazharr Excel Worksheet Functions 2 February 28th 08 03:28 PM
Averages Beth Excel Worksheet Functions 0 March 10th 06 03:33 PM
Column Chart With Averages Displayed David Billigmeier Charts and Charting in Excel 1 March 1st 06 11:18 PM
Help with averages please amerkarim Excel Worksheet Functions 5 September 29th 05 04:03 AM
Averages Karen Excel Worksheet Functions 3 January 5th 05 10:02 PM


All times are GMT +1. The time now is 05:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"