H
Heath
I am haveing difficulty finding the error in my formula.
I am trying to create a worksheet in which I can type any
type of number and the sheet will calculate a moving
average for the data in question. Here is my sheet.
Date Adj. Close* sma 3
2-Aug-04 1106.62
3-Aug-04 1099.69
4-Aug-04 1098.63 #N/A
5-Aug-04 1080.7 #N/A
6-Aug-04 1063.97 #N/A
9-Aug-04 1065.22 #N/A
10-Aug-04 1079.04 #N/A
11-Aug-04 1075.79 #N/A
12-Aug-04 1063.23 #N/A
13-Aug-04 1064.8 #N/A
16-Aug-04 1079.34 #N/A
17-Aug-04 1081.71 #N/A
18-Aug-04 1095.17 #N/A
19-Aug-04 1091.23 #N/A
20-Aug-04 1098.35 #N/A
23-Aug-04 1095.68 #N/A
24-Aug-04 1096.19 #N/A
25-Aug-04 1104.96 #N/A
26-Aug-04 1105.09 #N/A
27-Aug-04 1107.77 #N/A
30-Aug-04 1099.15 #N/A
31-Aug-04 1104.24 #N/A
with this function in column C
=IF(ERROR.TYPE(AVERAGE(OFFSET(B3,-1,0,-$D$1,1)))
=4,"",AVERAGE(OFFSET(B3,-1,0,-$D$1,1)))
Any suggestions would be greatly appreciated
I am trying to create a worksheet in which I can type any
type of number and the sheet will calculate a moving
average for the data in question. Here is my sheet.
Date Adj. Close* sma 3
2-Aug-04 1106.62
3-Aug-04 1099.69
4-Aug-04 1098.63 #N/A
5-Aug-04 1080.7 #N/A
6-Aug-04 1063.97 #N/A
9-Aug-04 1065.22 #N/A
10-Aug-04 1079.04 #N/A
11-Aug-04 1075.79 #N/A
12-Aug-04 1063.23 #N/A
13-Aug-04 1064.8 #N/A
16-Aug-04 1079.34 #N/A
17-Aug-04 1081.71 #N/A
18-Aug-04 1095.17 #N/A
19-Aug-04 1091.23 #N/A
20-Aug-04 1098.35 #N/A
23-Aug-04 1095.68 #N/A
24-Aug-04 1096.19 #N/A
25-Aug-04 1104.96 #N/A
26-Aug-04 1105.09 #N/A
27-Aug-04 1107.77 #N/A
30-Aug-04 1099.15 #N/A
31-Aug-04 1104.24 #N/A
with this function in column C
=IF(ERROR.TYPE(AVERAGE(OFFSET(B3,-1,0,-$D$1,1)))
=4,"",AVERAGE(OFFSET(B3,-1,0,-$D$1,1)))
Any suggestions would be greatly appreciated