In Cell A16 I have:
=AVERAGE(SMALL(E5:E16,ROW(1:3)))
The "3" in the ROW(1:3) I want to reference in.
so that when I change C20 to say 5
My formula in A16 becomes:
=AVERAGE(SMALL(E5:E16,ROW(1:5)))
How can I do that?
Thanks in Advance,,,
This array formula will do the job:
=AVERAGE(SMALL(E5:E16,ROW(INDIRECT("1:" & C20))))
To be entered with <Shift><Ctrl><Enter> instead of <Enter>, also
if edited later.
--
Best regards
Leo Heuser
MVP Excel
"JMay" <JM...@cox.net> skrev i en meddelelse
news:IFAZ8.138394$DB.46...@news1.east.cox.net...
"Leo Heuser" <leo.h...@get2net.dk> wrote in message
news:O8p78QoLCHA.1976@tkmsftngp11...
"JMay" <JM...@cox.net> skrev i en meddelelse
news:3uEZ8.139610$DB.46...@news1.east.cox.net...