View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Birley Dave Birley is offline
external usenet poster
 
Posts: 171
Default SUM() cells by variables

Here's the code that it doesn't like:

myWorkCell(myCount, 17) = SUM(myWorkCell(2, 13):myWorkCell(myCount, 13))

Let's say myCount is 5, I'm expecting the cell 5 rows down and 17 to the
right to receive the value of all cells from 2 rows down and 13 to the right
to 5 rows down and 13 to the right .. in this case if myWorkCell.Row is 11,
it would present me with:

S(16) = SUM(N(12):N(16))

...at least that's what I thought I'd get. But, of course, I didn't <g!

Help, please.
--
Dave
Temping with Staffmark
in Rock Hill, SC