Hello,
I have a small problem,
An array of cells contains number, negative or positive. Although some cells are left blank in the array. Which cells are blank and which ones aren't vary depending on previous input.
I would like to take the average of the absolute values of the number in the cells. The cells that are blank in the array should be completely ignored.
I was thinking of something like this:
=SUMPRODUCT(ABS(A6:A161))/COUNT(A6:A161)
Although the ABS function doesn't work properly if some of the cells are blank. So there should be something within ABS that checks if the cells contain a number, although i don't know how to do this over an array and still get this to work.
I hope you can help,
Gert
I have a small problem,
An array of cells contains number, negative or positive. Although some cells are left blank in the array. Which cells are blank and which ones aren't vary depending on previous input.
I would like to take the average of the absolute values of the number in the cells. The cells that are blank in the array should be completely ignored.
I was thinking of something like this:
=SUMPRODUCT(ABS(A6:A161))/COUNT(A6:A161)
Although the ABS function doesn't work properly if some of the cells are blank. So there should be something within ABS that checks if the cells contain a number, although i don't know how to do this over an array and still get this to work.
I hope you can help,
Gert