emacs-orgmode
[Top][All Lists]

Re: [Orgmode] Table equations: II on lhs

 From: Kim Toms Subject: Re: [Orgmode] Table equations: II on lhs Date: Tue, 2 Feb 2010 09:08:30 -0500

Hm.  I hadn't noticed that; thanks!

On Mon, Feb 1, 2010 at 1:58 PM, Russell Adams wrote:
On Mon, Feb 01, 2010 at 12:08:20PM -0500, Kim Toms wrote:
> I am using a simple table to add up some estimates for tasks.  On the left
> hand side of the equations in the TBLFM line I can't get an _expression_ like
> @II\$2 to work.
>
> Here's an example
> | task  | estimate | probable |
> |-------+----------+----------|
> | one   |       12 |        2 |
> | two   |       10 |        3 |
> |-------+----------+----------|
> | total |       22 |        5 |
>
> I'd like to be able to put @II\$2 on the LHS of the equation.  That way, when
> I add a row to the table, the equation doesn't have to change.
>
> A workaround for the above table is to use \$LR2 and \$LR3 instead of the more
> general references.

I do this fairly often. Just use enter to add a row in the table, the
references are automatically updated. Now, if you copy and paste it
won't work.

I just tried your example with the LR, and that worked fine for me.

|-------+----------+----------|
| task  | estimate | probable |
|-------+----------+----------|
| one   |       12 |        2 |
| two   |       10 |        3 |
| three |        8 |        8 |
| three |        8 |        8 |
| three |        8 |        8 |
| three |        8 |        8 |
|-------+----------+----------|
| total |       54 |       37 |
|-------+----------+----------|

This isn't copy/paste sensitive at all.

------------------------------------------------------------------

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

_______________________________________________
Emacs-orgmode mailing list