emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Question regarding remote references in tables


From: Viktor Rosenfeld
Subject: [O] Question regarding remote references in tables
Date: Wed, 16 Nov 2011 16:27:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

I'm trying to copy the values of a column in one table to another table
in. If I understand the manual correctly, this should be possible with
remote references. But I can't get it to work. In the example below, if
I evaluate the table formula, column 2 of table "bar" is copied into
column 3.

Cheers,
Viktor

* Source table

#+TBLNAME: foo
| Query | Time |
|-------+------|
|     1 |  123 |
|     2 |  234 |
|     3 |  345 |

* Reference table

#+TBLNAME: bar
| Query | Garbage | Old Time |
|-------+---------+----------|
|     1 | a       |          |
|     2 | b       |          |
|     3 | c       |          |
#+TBLFM: $3=remote(foo,$2)

* Expected

| Query | Garbage | Old Time |
|-------+---------+----------|
|     1 | a       |      123 |
|     2 | b       |      234 |
|     3 | c       |      345 |

* Produced

| Query | Garbage | Old Time |
|-------+---------+----------|
|     1 | a       | a        |
|     2 | b       | b        |
|     3 | c       | c        |



reply via email to

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