ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   making a more acurate mean (https://www.excelbanter.com/excel-worksheet-functions/101725-making-more-acurate-mean.html)

[email protected]

making a more acurate mean
 
I'm working with a spreadsheet where we are tracking a few variables
that are later calculated into a mean. Generally there are alwats 5
variables in each mean, but every so often on of the conditions is not
met so that cell returns "FALSE" or "#N/A". In those cases excel
figures them as zeros in the mean.

Is there a way to have excell recognise the occurance of a "FALSE" or
"#N/A" and not bring it into the mean calculation?

So if one of the 5 variables returns "FALSE" or "#N/A" I would like
excell to do the mean based on the other 4 using a devisor of 4.

Any ideas?


Peo Sjoblom

making a more acurate mean
 
IF #N/A is in the range the result would be #N/A, if FALSE it would be
ignored

=AVERAGE(Range)

will ignore text and it will not be seen as zero


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com



wrote in message
oups.com...
I'm working with a spreadsheet where we are tracking a few variables
that are later calculated into a mean. Generally there are alwats 5
variables in each mean, but every so often on of the conditions is not
met so that cell returns "FALSE" or "#N/A". In those cases excel
figures them as zeros in the mean.

Is there a way to have excell recognise the occurance of a "FALSE" or
"#N/A" and not bring it into the mean calculation?

So if one of the 5 variables returns "FALSE" or "#N/A" I would like
excell to do the mean based on the other 4 using a devisor of 4.

Any ideas?




Rob Hick

making a more acurate mean
 

wrote:
I'm working with a spreadsheet where we are tracking a few variables
that are later calculated into a mean. Generally there are alwats 5
variables in each mean, but every so often on of the conditions is not
met so that cell returns "FALSE" or "#N/A". In those cases excel
figures them as zeros in the mean.


If you are using the average() function then Excel should ignore
anything but numerical values. Although I think if it sees an error,
such as #N/A then it will return that same error.

Is there a way to have excell recognise the occurance of a "FALSE" or
"#N/A" and not bring it into the mean calculation?


yes, it does this by default.

So if one of the 5 variables returns "FALSE" or "#N/A" I would like
excell to do the mean based on the other 4 using a devisor of 4.


If you are really having problems, you could try calculating the mean
from first priniciples - i.e. add up the values and then divide by the
count you want. Use the COUNTIF function to get the divisor you're
after.

Any ideas?




All times are GMT +1. The time now is 03:54 AM.

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