From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: hindiogine@gmail.com
Cc: emacs-org <emacs-orgmode@gnu.org>
Subject: Re: spreadsheet
Date: Fri, 03 Dec 2010 20:31:32 +0000 [thread overview]
Message-ID: <87tyiuegyj.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87ei9y62qo.fsf@gmail.com> (Henri-Paul Indiogine's message of "Fri, 03 Dec 2010 12:05:51 -0800")
Henri-Paul Indiogine <hindiogine@gmail.com> writes:
> Dear Orgmoders:
>
> I would like to use org-mode spreadsheet for my small business. I would
> like to have some type of ledger with running balance.
>
> I have done this sort of calculation with many spreadsheets
> e.g. OpenOffice Calc, but I am not able to do so with org-mode.
>
> This is what I would like to set up:
>
> | Date | Debit/Credit | Balance |
> |-------+--------------+---------|
> | day 1 | -10.00 | -10 |
> | day 2 | 50.00 | 40 |
> | day 3 | -20.00 | 20 |
> | day 4 | 40.00 | 60 |
>
> and so on.
>
> I tried the following in cell @2$3 : =$2 + @-1$2 but that does not
> work.
>
> Any suggestions?
>
> Thanks,
> Henri-Paul
The following seems to work for me:
--8<---------------cut here---------------start------------->8---
* balance
| Date | Debit/Credit | Balance |
|-------+--------------+---------|
| Start | | 0.00 |
| day 1 | -10.00 | -10.00 |
| day 2 | 50.00 | 40.00 |
| day 3 | -20.00 | 20.00 |
| day 4 | 40.00 | 60.00 |
#+TBLFM: $3=$2+@-1;%.2f::@2$3=0;%.2f
--8<---------------cut here---------------end--------------->8---
Alternatively, use babel with ledger if you want a full accounting
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.172.g40812)
prev parent reply other threads:[~2010-12-03 20:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-03 20:05 spreadsheet Henri-Paul Indiogine
2010-12-03 20:31 ` Eric S Fraga [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyiuegyj.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=hindiogine@gmail.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.