update
My original question was about taking the average of a single column of a named range. But upon reflection, the question generalizes to "how do I extract a single column from a named range?"
original question
I'm using a named range to extract two columns from a large dataset. Assume MyRange
defines three rows and two columns out of a larger dataset:
... |G |H | ...
+----|----|----|
| ... |
|2000|15.1| 10|
|2001|15.2| 23|
|2002|15.3| 30|
| ... |
Using MyRange
, how would I take the average of (only) column H
?
I've tried various things like AVERAGE(MyRange:H)
, and AVERAGE(INDEX(MyRange 1))
but haven't figured out the proper syntax.
(In the above example, the result should be 21.)