emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Calc: Second to last row


From: Karl Voit
Subject: Re: [O] Calc: Second to last row
Date: Thu, 1 Sep 2016 10:53:46 +0200
User-agent: slrn/pre1.0.0-18 (Linux)

* Karl Voit <address@hidden> wrote:
>
> I would like to refer to the second to last row of a table.
>
> The following example should demonstrate my issue. What I expect is
> that the following formula is filling @address@hidden with "1" and in the
> last row, there is the sum of all "1".

I am happy to have found the answer to my question on my own: @>> is
the second to last row. @>>> the one before. Same holds for columns:
$>> is the second to last column. 

The solution for my example is:

| Values |
|--------|
|      1 |
|      1 |
|      1 |
|--------|
|      1 |
|      1 |
|      1 |
|--------|
|      6 |
#+TBLFM: @2$1..@>>$1=1 :: @>$1=vsum(@2$1..@>>$1)

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




reply via email to

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