emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] question concerning table mode / vsum / automatic adjustments


From: Rainer Stengele
Subject: [Orgmode] question concerning table mode / vsum / automatic adjustments of indices
Date: Wed, 27 Aug 2008 13:35:02 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

I mostly have the same application of using org tables.
I have (many) columns with numbers and want to see the sum in the last row.

See this little example:

       |-------+--------|
       | items | amount |
       |-------+--------|
       | a     |    0.5 |
       | b     |    0.0 |
       | c     |    0.5 |
       |-------+--------|
       | sum   |     1. |
       |-------+--------|
#+TBLFM:    @5$2=vsum(@2..4)


Having the cursor on the row with "c"
and pressing <M-S-DOWN> I get this:

       |-------+--------|
       | items | amount |
       |-------+--------|
       | a     |    0.5 |
       | b     |    0.0 |
       |       |        |
       | c     |    0.5 |
       |-------+--------|
       | sum   |     1. |
       |-------+--------|
#+TBLFM:    @6$2=vsum(@address@hidden)

everything is adjusted correctly!


Now I want to add a row after "c". Being on the row below "c"
when I press <M-S-DOWN> I get this:

       |-------+--------|
       | items | amount |
       |-------+--------|
       | a     |    0.5 |
       | b     |    0.0 |
       | c     |    0.5 |
       |       |        |
       |-------+--------|
       | sum   |     1. |
       |-------+--------|
#+TBLFM:    @6$2=vsum(@address@hidden)

which is not what I want. I want "@5" as in the case before.
Is this a bug or a feature? How can I get what I need?

Thanks!


Rainer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]