View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Use value in cell as numeric reference to a row, within a sum func

=SUM(INDIRECT("D3:D"&A5))
--
HTH...

Jim Thomlinson


"cspr" wrote:

I would like to be able to use a value in a cell as the numeric reference to
a row in another column, to which to sum values in that column.
Eg.
If A5 = 7, sum values in cells D3 to D7.
If A5 = 13, sum values in cells D3 to D13.