* spreadsheet
@ 2010-12-03 20:05 Henri-Paul Indiogine
2010-12-03 20:31 ` spreadsheet Eric S Fraga
0 siblings, 1 reply; 2+ messages in thread
From: Henri-Paul Indiogine @ 2010-12-03 20:05 UTC (permalink / raw)
To: emacs-org
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
--
Henri-Paul Indiogine
Email: hindiogine@gmail.com
Running: Ubuntu Linux 10.10, Emacs 24.0.50.1, org-mode 7.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: spreadsheet
2010-12-03 20:05 spreadsheet Henri-Paul Indiogine
@ 2010-12-03 20:31 ` Eric S Fraga
0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2010-12-03 20:31 UTC (permalink / raw)
To: hindiogine; +Cc: emacs-org
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-03 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-03 20:05 spreadsheet Henri-Paul Indiogine
2010-12-03 20:31 ` spreadsheet Eric S Fraga
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.