ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Averages: Exclude Rows with 0 Values (https://www.excelbanter.com/excel-worksheet-functions/20219-averages-exclude-rows-0-values.html)

Goody

Averages: Exclude Rows with 0 Values
 
I use a spreadsheet in a fantasy racing league. I would like to show what
the player's weekly average score is, but I want to ignore future races
(current values are 0). Am I making this more difficult than it really is?


JulieD

Hi Goody

use an array function such as
=AVERAGE(IF(A5:A10<0,A5:A10,FALSE))
as it's an array function you'ld need to commit it using CONTROL & SHIFT &
ENTER instead of just enter.

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Goody" wrote in message
...
I use a spreadsheet in a fantasy racing league. I would like to show what
the player's weekly average score is, but I want to ignore future races
(current values are 0). Am I making this more difficult than it really
is?




Jason Morin

One way:

=SUM(A2:A20)/COUNTIF(A2:A20,"<0")

HTH
Jason
Atlanta, GA

-----Original Message-----
I use a spreadsheet in a fantasy racing league. I would

like to show what
the player's weekly average score is, but I want to

ignore future races
(current values are 0). Am I making this more difficult

than it really is?

.


Goody

Thanks!! It worked great!

"JulieD" wrote:

Hi Goody

use an array function such as
=AVERAGE(IF(A5:A10<0,A5:A10,FALSE))
as it's an array function you'ld need to commit it using CONTROL & SHIFT &
ENTER instead of just enter.

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Goody" wrote in message
...
I use a spreadsheet in a fantasy racing league. I would like to show what
the player's weekly average score is, but I want to ignore future races
(current values are 0). Am I making this more difficult than it really
is?





JulieD

you're welcome and thanks for the feedback

"Goody" wrote in message
...
Thanks!! It worked great!

"JulieD" wrote:

Hi Goody

use an array function such as
=AVERAGE(IF(A5:A10<0,A5:A10,FALSE))
as it's an array function you'ld need to commit it using CONTROL & SHIFT
&
ENTER instead of just enter.

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Goody" wrote in message
...
I use a spreadsheet in a fantasy racing league. I would like to show
what
the player's weekly average score is, but I want to ignore future races
(current values are 0). Am I making this more difficult than it really
is?







Goody

Thanks! That worked great too...

"Jason Morin" wrote:

One way:

=SUM(A2:A20)/COUNTIF(A2:A20,"<0")

HTH
Jason
Atlanta, GA

-----Original Message-----
I use a spreadsheet in a fantasy racing league. I would

like to show what
the player's weekly average score is, but I want to

ignore future races
(current values are 0). Am I making this more difficult

than it really is?

.




All times are GMT +1. The time now is 10:13 PM.

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