Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,sci.math
external usenet poster
 
Posts: 1
Default how to easily vary (parametrize) array sizes in Excel?

Suppose I have a column of numerical data, say, in Column A.

I want to compute average, e.g., average(A1:A1000).
But sometimes I want to compute average(A23:A1000) or
average(A48:A1000).

Is it possible for me to input the bottom of the range, say "A36", in
another cell, such as C1, and then compute
average(whatever cell is specified in cell C1,A1000)?

How do I do this simply?
MD

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 353
Default how to easily vary (parametrize) array sizes in Excel?

=AVERAGE(INDIRECT(C1):A1000)

"carolyn" wrote:

Suppose I have a column of numerical data, say, in Column A.

I want to compute average, e.g., average(A1:A1000).
But sometimes I want to compute average(A23:A1000) or
average(A48:A1000).

Is it possible for me to input the bottom of the range, say "A36", in
another cell, such as C1, and then compute
average(whatever cell is specified in cell C1,A1000)?

How do I do this simply?
MD


  #3   Report Post  
Posted to microsoft.public.excel.misc,sci.math
external usenet poster
 
Posts: 1
Default how to easily vary (parametrize) array sizes in Excel?

On Aug 2, 2:39 pm, carolyn wrote:
Suppose I have a column of numerical data, say, in Column A.

I want to compute average, e.g., average(A1:A1000).
But sometimes I want to compute average(A23:A1000) or
average(A48:A1000).

Is it possible for me to input the bottom of the range, say "A36", in
another cell, such as C1, and then compute
average(whatever cell is specified in cell C1,A1000)?

How do I do this simply?


If you have this in column A...

1
2
3
4
5
6
7
8
9
10


Full

=ADDRESS(1,1,1,1)
=ADDRESS(10,1,1,1)
=AVERAGE(INDIRECT(A15,1):INDIRECT(A16,1))


Partial
6
=ADDRESS(A21,1,1,1)
=ADDRESS(10,1,1,1)
=AVERAGE(INDIRECT(A22,1):INDIRECT(A23,1))

....you'll see this:

1
2
3
4
5
6
7
8
9
10


Full

$A$1
$A$10
5.5


Partial
6
$A$6
$A$10
8

MD



  #4   Report Post  
Posted to microsoft.public.excel.misc,sci.math
external usenet poster
 
Posts: 2,480
Default how to easily vary (parametrize) array sizes in Excel?

Hi Carolyn

One way
=AVERAGE(INDEX(A:A,C1):A1000)

--
Regards
Roger Govier



"carolyn" wrote in message
oups.com...
Suppose I have a column of numerical data, say, in Column A.

I want to compute average, e.g., average(A1:A1000).
But sometimes I want to compute average(A23:A1000) or
average(A48:A1000).

Is it possible for me to input the bottom of the range, say "A36", in
another cell, such as C1, and then compute
average(whatever cell is specified in cell C1,A1000)?

How do I do this simply?
MD



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
In excel, how do I vary a cell over a data range & see its effect? Bimal Charts and Charting in Excel 1 April 13th 07 02:21 PM
vary row colors in excel? bob the bolder Excel Discussion (Misc queries) 1 July 26th 06 04:34 PM
excel should let you vary error bars for individual points CRC Charts and Charting in Excel 4 July 5th 06 11:52 AM
vary the vlookup array depending on the value in a cell Greg Bergin Excel Worksheet Functions 1 June 14th 06 08:58 AM
Fill array with fn variables that vary across and down? Llurker Excel Worksheet Functions 3 May 29th 05 02:27 AM


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