title: How does one get the average of the last N rows in a table?
body: <p>I have a table (the "Table"). Table does not start on the first row of the spreadsheet (there are blanks rows above Table). There are no blank items in Table. Table contains OtherColumn, by which it is sorted, and Column. </p>
  
  <pre><code>OtherColumn    Column
  a1             b1
  a2             b2
  ...            ...
  aN             bN
  </code></pre>
  
  <p>I want to find the average of the last N items in Column. </p>
  
  <p>My current strategy involves =AVERAGE(OFFSET(M, -10, 0), M) where M is a cell reference to the last item in Column. How do I find M? </p>
  
  <p>Prefer a non-VBA solution. Looking for a more elegant solution for M than:</p>
  
  <pre><code>CELL("address", OFFSET(Leaders[[#Headers],[Column]], COUNTA(B13:B1048576)-1, 0)) 
  </code></pre>
  
  <p>where C13 is the header row of the Table and C1048576 is the last row in Column B in the spreadsheet.</p>