ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Average Formula? (https://www.excelbanter.com/excel-programming/347578-average-formula.html)

choo

Average Formula?
 
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

Steve

Average Formula?
 

In B1, enter =Average(A1:A$1)

Copy and paste it down B1 or use the fill handle.

"choo" wrote in message
...
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




chijanzen

Average Formula?
 
choo:

try,

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

--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"choo" wrote:

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

Average Formula?
 
Hi Steve,

Is there a different between =Average(A1:A$1) and =Average(A$1:A1)?

choo


"Steve" wrote:


In B1, enter =Average(A1:A$1)

Copy and paste it down B1 or use the fill handle.

"choo" wrote in message
...
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





Steve

Average Formula?
 
Both will do what you want.
..
"choo" wrote in message
...
Hi Steve,

Is there a different between =Average(A1:A$1) and =Average(A$1:A1)?

choo


"Steve" wrote:


In B1, enter =Average(A1:A$1)

Copy and paste it down B1 or use the fill handle.

"choo" wrote in message
...
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








All times are GMT +1. The time now is 01:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com