Next Meeting: July 7: Social gathering Next Installfest: TBD Latest News: Jun. 14: June LUGOD meeting cancelled Page last updated: 2004 Sep 11 12:05
Re: [vox-tech] open office spreadsheet question - dereferencing

Re: [vox-tech] open office spreadsheet question - dereferencing

```On Sat, 11 Sep 2004, Peter Jay Salzman wrote:

> Hola,
>
> I use a formula to compute the average homework score for a class, only using
> the scores of people who turn in the assignment.  In other words, it doesn't
> include people who get zero (I always give a point for turning in a piece of
> paper since a tree had to die for the paper).
>
>    SUM(B1:B14) / COUNTIF(B1:B14; ">0")
>
> I have to change that B14 each semester, depending on the number of people in
> the class.
>
> Instead, if I were to put the number of students in another cell, say E40,
> how could I dereference E40 and use it in the formula?   So, I'd like to do
> something like:
>
>
>    SUM(B1: *E40) / COUNTIF(B1:*E40; ">0")
>
> where "*" is some kind of dereference operator.   How do I do this?

AFAIK, you can't.  But what is to stop you from assuming you will never
have more than, say, 100 students at a time?

SUM(B1:B100) / COUNTIF(B1:B100; ">0")

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech

```