LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dark Horse
 
Posts: n/a
Default How do I do this, can it be done?


"Pete_UK" wrote in message
oups.com...
Are you likely to want to do this 65,000 times? The usual way of doing
this is to use column A to enter your values, from A2 down. In B2 you
could have this formula:

=IF(A2="","",A2+B1)

and copy this down. Column B would then give you the cumulative
(running) total until there were no more numbers in column A. In C2 you
could have this formula to count how many entries you have in column B:

=COUNT(B2:B65536)

and in D2 you could work out the average as

=MAX(B2:B65536)/C2 (assuming you are only putting in positive values)

Alternatively, you could just put numbers in column A and this formula
in cell B2:

=AVERAGE(A2:A65536)

As you add numbers to the bottom of column A, the average automatically
adjusts. This way you automatically keep track of the numbers you have
used, and if you want a running total you can put this formula in
either A1 or B1:

=SUM(A2:A65536)

Hope this helps.

Pete

Thanks Pete
My work actually goes across in rows rather than down in columns, because I
want to keep everything visible on one screen - but in principle it is the
same.
I was hoping to have 10 entries across and then divide by 10 (easy enough)
and then replace one number with another but wanted a way of increasing the
count so as to keep the average true.
Seems it can't be done
Dave


 
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



All times are GMT +1. The time now is 04:10 PM.

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

About Us

"It's about Microsoft Excel"