emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eddward DeVilla" <eddward@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: table formula question
Date: Tue, 5 Jun 2007 16:40:04 -0500	[thread overview]
Message-ID: <b71b18520706051440v2328c424x497ac5d9127565c8@mail.gmail.com> (raw)

Hi,

    I'm having trouble trying to figure out what I've got wrong here.
Given the table

* wealth management
  |--------------------------+--------+-------|
  | item                     | amount | total |
  |--------------------------+--------+-------|
  | paid                     |  50.00 |       |
  | baby's new part of shoes | -25.00 |       |
  | chip                     |  -2.50 |       |
  |--------------------------+--------+-------|
#+TBLFM: $3='(+ @-1 $-1)


I would expect to get the results

* wealth management
  |--------------------------+--------+-------|
  | item                     | amount | total |
  |--------------------------+--------+-------|
  | paid                     |  50.00 | 50.00 |
  | baby's new part of shoes | -25.00 | 25.00 |
  | chip                     |  -2.50 | 22.50 |
  |--------------------------+--------+-------|
#+TBLFM: $3='(+ @-1 $-1)


But instead I just get

* wealth management
  |--------------------------+--------+--------|
  | item                     | amount | total  |
  |--------------------------+--------+--------|
  | paid                     |  50.00 | #ERROR |
  | baby's new part of shoes | -25.00 | #ERROR |
  | chip                     |  -2.50 | #ERROR |
  |--------------------------+--------+--------|
#+TBLFM: $3='(+ @-1 $-1)


I'm sure I'm missing something.  Is a table like this even possible?

Edd

             reply	other threads:[~2007-06-05 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-05 21:40 Eddward DeVilla [this message]
2007-06-06  1:39 ` table formula question William Henney
2007-06-06  1:48   ` Eddward DeVilla

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=b71b18520706051440v2328c424x497ac5d9127565c8@mail.gmail.com \
    --to=eddward@gmail.com \
    --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).