From: Nick Dokos <nicholas.dokos@hp.com>
To: Thorsten <gruenderteam.berlin@googlemail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: date functions in org tables
Date: Fri, 25 Feb 2011 17:02:52 -0500 [thread overview]
Message-ID: <4548.1298671372@alphaville.usa.hp.com> (raw)
In-Reply-To: Message from Thorsten <gruenderteam.berlin@googlemail.com> of "Fri, 25 Feb 2011 22:34:22 +0100." <86r5avlrxd.fsf@googlemail.com>
Thorsten <gruenderteam.berlin@googlemail.com> wrote:
>
> Hello,
> is there something like a column formula in org that enables me to introduce a
> date in the first row and then automatically fills the other rows of
> that column with followup dates (+ 1 day or + 1 week i.e.)
> like this:
>
> | date | kg |
> |-----------------+----|
> | <2011-02-08 Di> | 86 |
> | <2011-02-09 Mi> | 85 |
> | etc. | |
>
> thanks for any hints
Interactively S-<RET> will insert a row with the next date (i.e. the + 1
day bit), but I don't know of a way to make it skip by larger
steps (i.e. the + 7 days bit).
With a table formula, you can skip by as much as you want:
--8<---------------cut here---------------start------------->8---
* Consecutive dates
| Date | Weight |
|------------------+--------|
| <2011-02-25 Fri> | 71 |
| <2011-03-04 Fri> | |
| <2011-03-11 Fri> | |
| <2011-03-18 Fri> | |
| <2011-03-25 Fri> | |
#+TBLFM: @2$1=<2011-02-25 Fri>::$1=<@-1$1>+7
--8<---------------cut here---------------end--------------->8---
using a field formula to set the first entry and a column formula
to calculate the rest, but it just fills up pre-existing rows. IOW,
if you want a bigger table, you have to insert a number of empty
rows and then recalculate.
HTH,
Nick
next prev parent reply other threads:[~2011-02-25 22:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 21:34 date functions in org tables Thorsten
2011-02-25 22:02 ` Nick Dokos [this message]
2011-02-25 22:19 ` Thorsten
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4548.1298671372@alphaville.usa.hp.com \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=gruenderteam.berlin@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).