<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><P>Some years back (in the era of Lotus-123) I had  similar problem which I solved with a macro. Basically, what I did was move the cursor from a fixed cell position in some direction a distance specified in the control cell, define a range of highlighted cells. Use the range name in the required formula.</P><P></P><P>I am not sure if gnumeric can do that.<BR></P><P></P><P>EK</P><BR>--- On <B>Mon, 7/21/08, Christopher Browne <I><cbbrowne-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org></I></B> wrote:<BR><BLOCKQUOTE style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Christopher Browne <cbbrowne-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org><BR>Subject: Re: [TLUG]: Is there an indirect index in Gnumeric?<BR>To: tlug-lxSQFCZeNF4@public.gmane.org<BR>Received: Monday, July 21, 2008, 11:05 AM<BR><BR><PRE>On Mon, Jul 21, 2008 at 2:30 AM, Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org>
wrote:
>  Situation...
>  - spreadsheet cell A1 has value 25
>  - cell A2 has value 35
>
>  Is there a way to read those cells and use their values as indexes?
> E.g. suppose I want to take =average(C25:C35), without literally writing
> the values, by obtaining the range from the values in cells A1 and A2.

There is a LOOKUP function that allows you to search for values within
a range.  Unfortunately, that doesn't get you an average across a
specified range :-(.

Spreadsheets don't give this much of a degree of indirection :-(.

It wouldn't be difficult to have a function to express this; you'd
essentially define an AVERAGE function that has 4 parameters
indicating the 4 corners of the rectangle.  But it's not something
that is supported in any spreadsheet I know of.
-- 
http://linuxfinances.info/info/linuxdistributions.html
"The definition of insanity is doing the same thing over and over and
expecting different results." -- assortedly attributed to Albert
Einstein, Benjamin Franklin, Rita Mae Brown, and Rudyard Kipling
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists</PRE></BLOCKQUOTE></td></tr></table><br>
      <hr size=1>Instant message from any web browser! Try the new <a href="http://ca.messenger.yahoo.com/webmessengerpromo.php"><b> Yahoo! Canada Messenger for the Web BETA</b></a>