emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Tables: issue with vsum
@ 2013-06-17  9:39 Karl Voit
  2013-06-17  9:50 ` Tables: issue with vsum (fixed) Karl Voit
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Voit @ 2013-06-17  9:39 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I've got an issue with a (simple) table formula.

Org-mode version 8.0.2 (release_8.0.2-121-g86fab4)

    |   | A | B | P     |
    |---+---+---+-------|
    |   | 2 | 2 |       |
    |   | 1 | 2 |       |
    |   | 2 | 1 |       |
    |   | 1 | 2 |       |
    |   | 1 | 0 |       |
    |---+---+---+-------|
    |   |   |   |       |
    | ^ |   |   | Summe |
    #+TBLFM: @2$4..@II-1$4=$2*$3; $Summe=vsum(@I$4..@II$4)

... C-c C-c should IMHO result in:

    |   | A | B | P     |
    |---+---+---+-------|
    |   | 2 | 2 |     4 |
    |   | 1 | 2 |     2 |
    |   | 2 | 1 |     2 |
    |   | 1 | 2 |     2 |
    |   | 1 | 0 |     0 |
    |---+---+---+-------|
    |   |   |   |    10 |
    | ^ |   |   | Summe |
    #+TBLFM: @2$4..@II-1$4=$2*$3; $Summe=vsum(@I$4..@II$4)

... but it results at my side in:

    |   | A | B | P                    |
    |---+---+---+----------------------|
    |   | 2 | 2 | ()=vsum(@I$4..@II$4) |
    |   | 1 | 2 | ()=vsum(@I$4..@II$4) |
    |   | 2 | 1 | ()=vsum(@I$4..@II$4) |
    |   | 1 | 2 | ()=vsum(@I$4..@II$4) |
    |   | 1 | 0 | ()=vsum(@I$4..@II$4) |
    |---+---+---+----------------------|
    |   |   |   |                      |
    | ^ |   |   | Summe                |
    #+TBLFM: @2$4..@II-1$4=$2*$3; $Summe=vsum(@I$4..@II$4)

What is the reason between my expectations and the result?

Thank you!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Tables: issue with vsum (fixed)
  2013-06-17  9:39 Tables: issue with vsum Karl Voit
@ 2013-06-17  9:50 ` Karl Voit
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Voit @ 2013-06-17  9:50 UTC (permalink / raw)
  To: emacs-orgmode

* Karl Voit <devnull@Karl-Voit.at> wrote:
>
> I've got an issue with a (simple) table formula.

I found my (stupid) error:

>     #+TBLFM: @2$4..@II-1$4=$2*$3; $Summe=vsum(@I$4..@II$4)
                                  ^

... should rather be:
      #+TBLFM: @2$4..@II-1$4=$2*$3 :: $Summe=vsum(@I$4..@II$4)
                                   ^^
Sorry for the fuzz!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-17  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17  9:39 Tables: issue with vsum Karl Voit
2013-06-17  9:50 ` Tables: issue with vsum (fixed) Karl Voit

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