Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default 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




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 97
Default 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






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Formula Peter Excel Discussion (Misc queries) 1 March 14th 10 08:48 PM
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
average in formula? fivermsg Excel Discussion (Misc queries) 7 March 13th 06 11:59 PM
Formula for Average YanYan Excel Discussion (Misc queries) 3 September 30th 05 07:51 PM
how does one convert text to a formula "average(A:A)" to =average( phshirk Excel Worksheet Functions 4 April 14th 05 01:20 AM


All times are GMT +1. The time now is 06:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"