Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need macro
For each row i in col G I'd like to place (the sum of the values in col F
from rows 1 to i) divided by i. Can someone show me how to do that? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need macro
You don't really need a macro for this:
G2: =sum(F$2:F2)/count(F$2:F2) And copy the value down as needed. "grok" wrote: For each row i in col G I'd like to place (the sum of the values in col F from rows 1 to i) divided by i. Can someone show me how to do that? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Need macro
One way:
Dim i As Long i = Range("F" & Rows.Count).End(xlUp).Row With Range("G1").Resize(i, 1) .Formula = "=F1/" & i .Value = .Value End With In article , grok wrote: For each row i in col G I'd like to place (the sum of the values in col F from rows 1 to i) divided by i. Can someone show me how to do that? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |