Average based on the previous row
Try this:
I'm assuming there are no empty cells in row 2.
Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):
=AVERAGE(IF(MONTH(B2:FZ2)=1,B3:FZ3))
Biff
"Gary" wrote in message
...
Hi All,
in row 2 I have dates jan 1 to jun 31
in row 3 I have some data.
now if in cell A60 i need the average of the data in row 3 only for
January....so if Jan starts in cell B2 and ends in cell AF2, I need the
average of data in B3 to AF3
please help.
Thanks
|