unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: rb <rb@panix.com>
Subject: Re: blank cells in ses range
Date: 27 Nov 2004 16:49:14 -0500	[thread overview]
Message-ID: <kx9mzx36jz9.fsf@panix5.panix.com> (raw)
In-Reply-To: mndaoc.o8.ln@acm.acm

Alan Mackenzie <acm@muc.de> writes:

> rb <rb@panix.com> wrote on 26 Nov 2004 16:11:39 -0500:
> > What I would like is the sum of, say, Column "E", which has rows 1 -
> > 10, of which approx. half are empty. 
> 
> >         E
> > 1       41
> > 2       11
> > 3       
> > 4       9
> > 5       
> > 6       20
> > 7       
> > 8       
> > 9       15
> > 10      96
> 
> > What I would like is for E10 to be (apply '+ (ses-range E1 E9)), with
> > the empty cells simply eliminated from the calculation. I can't figure
> > out how to make (ses+ &rest ARGS) work with the range calculation.
> 
> > Thanks very much for any help,
> 
> Does it have to be an Emacs solution?

Thank you for the suggestion. Yes, though, I am trying to figure out how
to make this work within ses/emacs. The example was extracted from what
would be a much more extensive spreadsheet. My workaround is to
specifically list all the cells: (ses+ E1 E2 E3 E4 E5 E6 E7 E8 E9)
works, but I would like to find a way to exclude the empty cells from an
ses-range. I believe this is meant to be possible, I simply fail to
understand how to go about it.

Thanks again,

rb
-- 

  reply	other threads:[~2004-11-27 21:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-26 21:11 blank cells in ses range rb
2004-11-27 17:32 ` Alan Mackenzie
2004-11-27 21:49   ` rb [this message]
2004-11-27 22:08 ` Stefan Monnier
2004-11-27 23:52   ` rb
2004-11-28  0:54   ` rb
2004-11-29 15:05     ` Stefan Monnier
2004-11-29 17:05       ` Jonathan Yavner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kx9mzx36jz9.fsf@panix5.panix.com \
    --to=rb@panix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).