emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: henry atting <nsmp_02@online.de>
To: emacs-orgmode@gnu.org
Subject: delete, add new row
Date: Thu, 01 Dec 2011 18:42:17 +0100	[thread overview]
Message-ID: <87fwh4i3ye.fsf@bye.fritz.box> (raw)

Suppose I have this table:

| month | expenses | average |
|-------+----------+---------|
|     1 |       20 |         |
|     2 |       30 |    25.0 |
|     3 |       40 |    30.0 |
#+TBLFM: @3$3..@>$3=vmean(@2$2..@0$2);%.1f

Then I want to delete the second row and add a new one at the bottom.
If I do so I get `#ERROR' on every recalculation.

| month | expenses | average |
|-------+----------+---------|
|     2 |       30 |  #ERROR |
|     3 |       40 |  #ERROR |
|     4 | 50       |  #ERROR |
#+TBLFM: @2$3..@>$3=vmean(@INVALID$2..@0$2);%.1f

If I push the second row to the bottom the
result is as if the last row is still the second one.

| month | expenses | average |
|-------+----------+---------|
|     2 |       30 |    30.0 |
|     3 |       40 |    30.0 |
|     1 |       20 |    20.0 |
#+TBLFM: @2$3..@>$3=vmean(@4$2..@0$2);%.1f


henry

-- 
http://literaturlatenight.de

             reply	other threads:[~2011-12-01 17:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 17:42 henry atting [this message]
2011-12-01 20:23 ` delete, add new row Jonathan Leech-Pepin
2011-12-02  9:59   ` henry atting

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87fwh4i3ye.fsf@bye.fritz.box \
    --to=nsmp_02@online.de \
    --cc=emacs-orgmode@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).