M
mikelee
try this. in cell a3, use the formula:
=IF(MONTH(A1)<MONTH(TODAY()), "", IF(MONTH(A1)>MONTH(TODAY
())+6,"",AVERAGE(A2:F2)))
you can then copy/paste it to the rest of the columns.
the drawback to that is that it won't wrap around years
(i.e. jan will always be less than dec). if you need it
to wrap, you can try:
=IF(A1<TODAY(), "", IF(A1>TODAY()+182,"",AVERAGE(A2:F2)))
(i used 182 because it's close to half of 365). the
drawback to this one is that, if you have 1/03 in cell
a1, the formula will return a blank on 1/04. if neither
of them work, you can try using various combinations of
the Month() function on the beginning and end of the
criteria to see if it gives you what you want.
hope that helps.
mike
=IF(MONTH(A1)<MONTH(TODAY()), "", IF(MONTH(A1)>MONTH(TODAY
())+6,"",AVERAGE(A2:F2)))
you can then copy/paste it to the rest of the columns.
the drawback to that is that it won't wrap around years
(i.e. jan will always be less than dec). if you need it
to wrap, you can try:
=IF(A1<TODAY(), "", IF(A1>TODAY()+182,"",AVERAGE(A2:F2)))
(i used 182 because it's close to half of 365). the
drawback to this one is that, if you have 1/03 in cell
a1, the formula will return a blank on 1/04. if neither
of them work, you can try using various combinations of
the Month() function on the beginning and end of the
criteria to see if it gives you what you want.
hope that helps.
mike