M
Michael Link
Hi:
The inelegant formula below is an attempt to average values in G10, J10,
M10, and P10 if the cell to the right of each one is greater than 4. (That
is, if the cell to the right is 4 or less, the number to the left needs to be
tossed out of the calculation completely and only the remaining numbers
averaged):
=IF(ISERROR(AVERAGE(IF(H10<=4,0,G10),IF(K10<=4,0,J10),IF(N10<=4,0,M10),IF(Q10<=4,0,P10))),"",AVERAGE(IF(H10<=4,0,G10),IF(K10<=4,0,J10),IF(N10<=4,0,M10),IF(Q10<=4,0,P10)))
As you can see, though, instead of tossing out the number to the left
completely, it just uses a zero instead, which completely screws the average
I need. I've tried substituting double quotes for the zeroes, but of couse
that doesn't work, either.
Any ideas on how this whole thing can be reconfigured as an array formula to
do what I need it to do? I keep getting lost in the syntax and getting
useless results.
Help!
Thanks in advance!
Michael Link
The inelegant formula below is an attempt to average values in G10, J10,
M10, and P10 if the cell to the right of each one is greater than 4. (That
is, if the cell to the right is 4 or less, the number to the left needs to be
tossed out of the calculation completely and only the remaining numbers
averaged):
=IF(ISERROR(AVERAGE(IF(H10<=4,0,G10),IF(K10<=4,0,J10),IF(N10<=4,0,M10),IF(Q10<=4,0,P10))),"",AVERAGE(IF(H10<=4,0,G10),IF(K10<=4,0,J10),IF(N10<=4,0,M10),IF(Q10<=4,0,P10)))
As you can see, though, instead of tossing out the number to the left
completely, it just uses a zero instead, which completely screws the average
I need. I've tried substituting double quotes for the zeroes, but of couse
that doesn't work, either.
Any ideas on how this whole thing can be reconfigured as an array formula to
do what I need it to do? I keep getting lost in the syntax and getting
useless results.
Help!
Thanks in advance!
Michael Link