Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Average: 2nd argument as a variable in another cell av(c6:c(a3))

I bring in lists of various lengths to be averaged. My averaging forumlas are
already set up on the page. If the list is shorter than my predetermined
column length, I get errors of DIV by zero. If they are longer, then not all
are included.
I want to count the length of the list and use the result as a variable in
my averaging formula so the column length is always the same as the list I
bring in. For example:
AV(c6:c(a3)) where 'a3' is the count result of my list. The error I get is
the #NAME? error.
I am using Excel 2003.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 258
Default Average: 2nd argument as a variable in another cell av(c6:c(a3))

Tony --
I'm confident someone else will present something more elegant. In the
meantime, here's a 'brute force' approach

A B
1 1 =COUNT(A:A)
2 2 =ADDRESS(B1,A1)
3 3 =AVERAGE(A1:INDIRECT(B2))
4 4
5 5

The result in B1 is 5
B2 $A$5
B3 3

Modify to fit.

HTH

"Tony the Tiger" wrote:

I bring in lists of various lengths to be averaged. My averaging forumlas are
already set up on the page. If the list is shorter than my predetermined
column length, I get errors of DIV by zero. If they are longer, then not all
are included.
I want to count the length of the list and use the result as a variable in
my averaging formula so the column length is always the same as the list I
bring in. For example:
AV(c6:c(a3)) where 'a3' is the count result of my list. The error I get is
the #NAME? error.
I am using Excel 2003.

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 the last eight or nine (Variable) numbers in a row. Michael Excel Discussion (Misc queries) 3 December 11th 07 09:55 PM
How to average one constant # to variable #s? A1:A2 A1:A3 A1:A4 Colfax Excel Worksheet Functions 1 March 2nd 06 02:49 AM
average last 17 cells (variable) brian thompson3001 via OfficeKB.com New Users to Excel 11 November 18th 05 02:39 AM
average last 17 cells (variable) brian thompson3001 via OfficeKB.com New Users to Excel 1 November 17th 05 06:18 PM
2 Variable Graph - want average line??? qthisup Charts and Charting in Excel 1 July 14th 05 01:50 AM


All times are GMT +1. The time now is 11:53 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"