emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: The Dude <rafal.kowalski@mac.com>
To: emacs-orgmode@gnu.org
Subject: Re: date calculation in org table
Date: Thu, 23 May 2013 09:51:40 +0200	[thread overview]
Message-ID: <m2k3mqkub7.fsf@mac.com> (raw)
In-Reply-To: m2d2sitb23.fsf@vpn-client437.uio.no

-> Christian Moe writes:

> Hi, Dude,

> Not quite sure why that doesn't work (nor gives an error message about
> trying to set the same cell). However, it will work if you specify the
> cell range:

>> @4$4=$sdate + $3::$4=@-1$4+$3
>                     ^^   
>   @4$4=$sdate + $3::@5$4..@20$4=@-1$4+$3
>                     ^^^^^^^^^^^

Yep, that works perfectly.  The only drawback is when I have to add a
new row etc. but I can live with that.  Thanks!

> BTW, it's OK to omit the reference to the same column, so you can save
> two characters:

>   @4$4=$sdate + $3::@5$4..@20$4=@-1$4+$3
>                                    ^^
>   @4$4=$sdate + $3::@5$4..@20$4=@-1+$3 

Got it.

> Yours,
> Christian

cheers
-- 
-dude

Too brief? Here's why! http://emailcharter.org

  reply	other threads:[~2013-05-23  7:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-23  6:43 date calculation in org table The Dude
2013-05-23  7:22 ` Christian Moe
2013-05-23  7:51   ` The Dude [this message]
2013-05-23  8:24 ` Michael Brand
2013-05-23 14:47   ` The Dude
2013-05-23 15:02     ` Michael Brand

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=m2k3mqkub7.fsf@mac.com \
    --to=rafal.kowalski@mac.com \
    --cc=emacs-orgmode@gnu.org \
    /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).