Average Formula?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I want to calculate the average amount of a growing column A. Column A is
the amount and column B is the corresponding average of total column A until
that row. How is the formula look like?

A B
2 2
3 2.5
1 2
5 2.75
4 3

Thank you.
choo
 
choo:

try,

i = 1
Do While Cells(i, 1) <> ""
Cells(i, 2).Formula = "=AVERAGE(A1:A" & i & ")"
i = i + 1
Loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top