I am trying to use the Cell formula as the address for a Range in the Average formula.
So, instead of the traditional =Average(B1:B3), I am trying to use the Cell formula for B1 and for B3. Is this not possible?
To make it even more complicated, I am using Match and Index to find the first Non-Zero value. I need to find a 30-60-90-120 average from the first day of production (ie first non-zero value).
For the example, I have narrowed it to a 3 day average from 10 days worth of data, but in reality, I will be using it on 30-60-90-120 day averages on a years' worth of data.
The formula I was trying is:
=AVERAGE((CELL("address",INDEX(B2:K2,MATCH(TRUE,INDEX(B2:K2<>0,),0)))) : (CELL("address",OFFSET(INDEX(B2:K2,MATCH(TRUE,INDEX(B2:K2<>0,),0)),0,2))))
But, it keeps giving me a #VALUE error. Is this just not going to work or do I have something written incorrectly?
Any help will be much appreciated!
Brandi
So, instead of the traditional =Average(B1:B3), I am trying to use the Cell formula for B1 and for B3. Is this not possible?
To make it even more complicated, I am using Match and Index to find the first Non-Zero value. I need to find a 30-60-90-120 average from the first day of production (ie first non-zero value).
For the example, I have narrowed it to a 3 day average from 10 days worth of data, but in reality, I will be using it on 30-60-90-120 day averages on a years' worth of data.
The formula I was trying is:
=AVERAGE((CELL("address",INDEX(B2:K2,MATCH(TRUE,INDEX(B2:K2<>0,),0)))) : (CELL("address",OFFSET(INDEX(B2:K2,MATCH(TRUE,INDEX(B2:K2<>0,),0)),0,2))))
But, it keeps giving me a #VALUE error. Is this just not going to work or do I have something written incorrectly?
Any help will be much appreciated!
Brandi