Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
I understand the basics of array formulas,and the following formula
=AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
Done in a slightly different way.
=SUM(A2,A3,A4,A7)/COUNTIF(A2:A4,"0")+COUNTIF(A7,"0") Mike "sonicscooter" wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
Sorry a set of brackets missing.
=SUM(A2,A3,A4,A7)/(COUNTIF(A2:A4,"0")+COUNTIF(A7,"0")) Mike "sonicscooter" wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
Are A2:A4 always filled in with a number?
=SUM(A2:A4,A7)/(COUNTIF(A2:A4,"<"&0)+COUNT(A7)) sonicscooter wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... -- Dave Peterson |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
Or if you could have text in those cells:
=SUM(A2:A4,A7)/(COUNTIF(A2:A4,"<"&0)+COUNTIF(A2:A4,""&0) +(ISNUMBER(A7)*(A7<0))) I missed the part that A7 should be excluded if =0 in the earlier post. Dave Peterson wrote: Are A2:A4 always filled in with a number? =SUM(A2:A4,A7)/(COUNTIF(A2:A4,"<"&0)+COUNT(A7)) sonicscooter wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... -- Dave Peterson -- Dave Peterson |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
Hi,the list of cells is longer than that in my example,ie A1:A200 plus B2,the
reason for using an array formula was because some of the cells in either A1:A200 or B2 may contain zero's.....i didn't want to count zero's as it alters the outcome....Thanks Shane......England "Dave Peterson" wrote: Are A2:A4 always filled in with a number? =SUM(A2:A4,A7)/(COUNTIF(A2:A4,"<"&0)+COUNT(A7)) sonicscooter wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... -- Dave Peterson |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
AVERAGE
It works fine,thanks very much....Shane.
"sonicscooter" wrote: I understand the basics of array formulas,and the following formula =AVERAGE(IF(A2:A4<0, A2:A4,"")) which doesn't count zero's,but i want the cells A2:A4 but also with A7 added as a seperate cell for the formula to use in its calculations =AVERAGE(A2:A4,A7) something like this =AVERAGE(IF(A2:A4,A7<0, A2:A4,A7,"")) although this doesn't work,does anyone know how to write this the right way..........Help please... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Average doesn't average correctly? | Excel Discussion (Misc queries) | |||
average cells, show 0 if nothing to average | Excel Discussion (Misc queries) | |||
Error Handling #N/A with AVERAGE Function - Average of values in Row | Excel Worksheet Functions | |||
Weighed Average of a weiged average when there are blanks | Excel Discussion (Misc queries) | |||
how does one convert text to a formula "average(A:A)" to =average( | Excel Worksheet Functions |