Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey guys, you've been extremely helpful in the recent past and
hopefully your genuis will shine again. I am trying to run a 2 dimensional loop. starting cell ("lastrw +2","lastcol-37"), i want to go cell by cell till "lastcol" and fill each cell with an averageif formula. once 'lastcol' is reached i want to start over again at 'lastrw+3' and loop again, then the same for 'lastrw+4'. I think i've got they syntax of the loop correct but i'm struggling with the averageif formula. help? Here's what i've got so far. I know... it must look a mess. For i = LastRw + 2 To LastRw + 4 For ii = LastCol - 37 To LastCol Cells(i, ii).Formula = "=averageif(a1:a" & lastrw & ",b" &i& ",c1:c" &lastcol& ")" Next ii Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AVERAGEIF FORMULA EXCEL 2007 | Excel Discussion (Misc queries) | |||
Help with Averageif Formula (don't think I should use Averageif) | Excel Discussion (Misc queries) | |||
Export 1-dimensional array values to a two-dimensional table? | Excel Programming | |||
Changing a two-dimensional, one row array to one-dimensional | Excel Programming | |||
How to generate formula from two dimensional array of data | Excel Worksheet Functions |