V
vano
HI,
Yes the first formula works. Thanks you very much.
The 2nd formula did not.
I am astounded with what can be done in excel if you know how to us
it.
Just one last Q
If I want to change the average to say the last 20 cells with number
in it what do I need to change in the code below.
I changed 5 to 20 but I got an error. The code need to reference a
least 50 cells to find 20 numbers.
=AVERAGE(IF(INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),5)):INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),1))<>0,INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),5)):INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),1))))
...entered using CONTROL+SHIFT+ENTER.
Thanks in advance,
Va
Yes the first formula works. Thanks you very much.
The 2nd formula did not.
I am astounded with what can be done in excel if you know how to us
it.
Just one last Q
If I want to change the average to say the last 20 cells with number
in it what do I need to change in the code below.
I changed 5 to 20 but I got an error. The code need to reference a
least 50 cells to find 20 numbers.
=AVERAGE(IF(INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),5)):INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),1))<>0,INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),5)):INDEX(A:A,LARGE(IF(A1:A23<>0,ROW(A1:A23)),1))))
...entered using CONTROL+SHIFT+ENTER.
Thanks in advance,
Va