Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Guys I am trying to use this macro ..
Sub testingaverage() Set rng = ActiveSheet.UsedRange lastRow = rng.Rows(rng.Rows.Count).Row For i = 1 To lastRow Step 100 Cells(i, "L").FormulaArray = "=Average(f1:f100)" Next End Sub This macro gives me average for F1:F100 in every 100th row of column L. What I want to do is : ----the first time I get average it should be F1:F100 ----second time It should be F101:F200 ---Third time F201:F300 ....... and so on ..... So basically my question is how do I change the x value in Fx Any help would be great Thanks Chinmay |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
array transpose for dynamic data without macros | Excel Discussion (Misc queries) | |||
Array formula: how to join 2 ranges together to form one array? | Excel Worksheet Functions | |||
Excel Array Formula? | New Users to Excel | |||
Excel XP VBA Array formula | Excel Programming | |||
Tricky array formula issue - Using array formula on one cell, then autofilling down a range | Excel Programming |