[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] TABLES: Remove/add cell
From: |
Michael Brand |
Subject: |
Re: [O] TABLES: Remove/add cell |
Date: |
Fri, 30 Sep 2011 20:22:20 +0200 |
Hi Gustav
Ehm - it is doable, but not by editing commands from Org table. Only
with several rectangular edits or an Org table formula with a few
tricks and a temporary column to be removed afterward. Probably not as
comfortable as you have expected:
- insert row in only one column
start with:
| a | 1 | |
| b | 3 | |
| c | 4 | |
| d | | |
| a | 1 | 1 |
| b | 3 | |
| c | 4 | 3 |
| d | | 4 |
#+TBLFM: @1$3=$-1::@3$3..@>$3=subscr(@2$2..@>>$2, @# - 2)
- remove again
start with:
| a | 1 | |
| b | | |
| c | 3 | |
| d | 4 | |
| a | 1 | 1 |
| b | | 3 |
| c | 3 | 4 |
| d | 4 | |
#+TBLFM: @1$3=$-1::@2$3..@>>$3=subscr(@3$2..@>$2, @# - 1)
See the Calc manual for "subscr" and the Org manual for "@#" and the rest.
If it does not work (e. g. org-version 6.33) then upgrade.
Michael
2011/9/30 Gustav Wikström <address@hidden>:
> How do I add or remove a single cell in a table?
> Example:
> I have the following table:
> | 1 | 1 |
> | 2 | 3 |
> | 3 | 4 |
> | 4 | |
> Now I want to add an empty cell in @2$2 (below the heading) and thus move
> the following cells in column 2 down one step.
> After:
> | 1 | 1 |
> | 2 | |
> | 3 | 3 |
> | 4 | 4 |
> Is this doable?