LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Define a range end based upon current cell location?

BTW it is the control-shift-enter that is effectively the loop, which is
controlled by the ROW(INDIRECT... values.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"fedude" wrote in message
...
Bob,

Yikes! This formula is going to take me some time to understand, but at
first glance it looks very interesting....

I don't understand how this will give me the average of 10 numbers. Won't
this give me the average of the tenth smallest number in the range? Is

the
COUNT function like a loop?

Will this work if there are less than ten numbers in the list as well?

I probably don't understand how the INDIRECT function works. I'm going to
look it up. Can you help me decypher this?

"Bob Phillips" wrote:

or even like this


=FLOOR(AVERAGEA(SMALL(H2:H21,ROW(INDIRECT("1:"&MIN (COUNT(H2:H21),10)))))*0.9
6,0.1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"fedude" wrote in message
...
That's what I was already doing, but I find myself editing a lot of

cell
formulas. I'm trying to calculate golf handicaps and the rule is to

take
the
lowest 10 of the last 20 scores to figure it out, so I need a formula

which
evaluates 1-20 rows depending upon how many scores I have and then

once I
reach 20 I need a rolling range (i.e. not locked). I don't want to

use a
macro to do this.

Here is the formula I've been using (This is an example of the 4th

score
in
the list):


=FLOOR(AVERAGEA(SMALL(H13:H21,1),SMALL(H13:H21,2), SMALL(H13:H21,3))*0.96,0.1
)

"Bob Phillips" wrote:

Lock the start cell with absolutes

$A$1:A3

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"fedude" wrote in message
...
Is there a way to define a range based upon the current cell

location?
For
instance When I'm calculating a formula in C3 I want to use the

range
A1:A3,
but when I move down to C4, I want the range to be A1:A4.

The top of the range will remain constant, but the bottom of the

range
will
move based upon the row I'm currently in.








 
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
Return range of cell values based on current date WingH Excel Worksheet Functions 1 March 31st 10 07:35 PM
How to define a charts range based on the value of a cell chris Excel Discussion (Misc queries) 1 December 2nd 09 04:34 PM
define one cell location throughout workbook? New_to_accounting Excel Worksheet Functions 3 September 2nd 06 12:36 AM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
Define Range based on cell color StephanieH Excel Programming 6 December 15th 04 04:24 PM


All times are GMT +1. The time now is 04:14 AM.

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"