Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this
firstRow = 10 lastRow = 100 incr = 4 total = 0 for i=firstRow to lastRow step incr total = total + cells(i,col).value 'col = column number next i cells(row,col).value = total 'put your answer somewhere "QB" wrote: I need to sum every forth row between a start and end row. When I record a macro, I get "SUM(R[-60]C,R[-56]C,R[-52]C,R[-48],....,R[-4]C)" If I know that I need to sum every forth row from row 3 to 59 in column E of the active worksheet, how would I program this? I don't quite get the R[]C format created by the macro recording. Thank you, QB |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating New Formula | Excel Worksheet Functions | |||
CREATING A FORMULA | Excel Worksheet Functions | |||
formula creating | Excel Discussion (Misc queries) | |||
I need help creating a formula | Excel Discussion (Misc queries) | |||
Help in creating a formula | Excel Discussion (Misc queries) |