average f(x)

C

Chip Pearson

You have to convert the strings returned by ADDRESS to an actual range using
INDIRECT. E.g.,

=AVERAGE(INDIRECT(ADDRESS(4,26)&":"&ADDRESS(4,33)))
 
H

Harlan Grove

You have to convert the strings returned by ADDRESS to an actual range using
INDIRECT. E.g.,

=AVERAGE(INDIRECT(ADDRESS(4,26)&":"&ADDRESS(4,33)))
...

Or eliminate the unnecessary ADDRESS calls. Assuming this is actually
parametrized as =AVERAGE(INDIRECT(ADDRESS(w,x)&":"&ADDRESS(y,z))), try

=AVERAGE(INDIRECT("R"&w&"C"&x&":R"&y&"C"&z,0)) [safest]

or

=AVERAGE(OFFSET($A$1,x-1,w-1,y-w+1,z-x+1)) [shortest & maybe fastest]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top