Array Formula Counts Blanks as Zeroes
Posted by SJC on February 21, 2001 11:43 AM
I'm using an array formula to calculate daily averages for agents' sales for each month. Here's a snippet of my daily sales data:
Agent Feb-1 Feb-2 Feb-3 Feb-4
A_______100_blank___220___250
B______1500___900___900__1000
C_______700___500___600___800
Note that A got a blank for Feb-2 because A didn't try selling anything so we can't consider A got zero for Feb-2.
If I calculate averages for A, B, C using the usual AVERAGE function, I'd get 190, 1075, and 650 for A, B, C respectively. In this case, Excel "ignores" A for Feb-2, and that's what I want.
If I use array formula to calculate averages, I get 142.5 for A. In this case, Excel substitutes the blank with a zero for A for Feb-2, and I don't want that.
Is there anyway to make the array formula return 190 instead of 142.5? I've tried using the combination array SUM divided by array COUNT but COUNT in this case also counts the blank. Thanks in advance for your help!