From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Mattoon Subject: Re: dates in a spreadsheet Date: Wed, 17 Mar 2010 09:51:04 -0700 Message-ID: <3a257d511003170951q342b2165vdcc51391c4277911@mail.gmail.com> References: <3a257d511003162304o7eea96b4u40c581bb3bd69521@mail.gmail.com> <87eijjynnm.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0733922547==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrwSb-0004iu-Rp for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 12:51:09 -0400 Received: from [140.186.70.92] (port=36245 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrwSa-0004i6-16 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 12:51:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrwSX-0007qy-Vz for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 12:51:07 -0400 Received: from mail-yx0-f194.google.com ([209.85.210.194]:62444) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrwSX-0007qt-QR for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 12:51:05 -0400 Received: by yxe32 with SMTP id 32so670664yxe.24 for ; Wed, 17 Mar 2010 09:51:05 -0700 (PDT) In-Reply-To: <87eijjynnm.fsf@stats.ox.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Dan Davison Cc: emacs-orgmode@gnu.org --===============0733922547== Content-Type: multipart/alternative; boundary=0016368e357f88f93e048201eb82 --0016368e357f88f93e048201eb82 Content-Type: text/plain; charset=ISO-8859-1 Sure thing. Basically I'd like the "date" column to be automatically calculated so that I can move things around, add extra days here and there, and not have to edit that column by hand. | date | location | activities | notes | |-----------+----------+---------------+----------------------------| | 03-16 Tue | moon | collect rocks | | | 03-17 Wed | mars | terraform | this might take a few days | | 03-18 Thu | earth | breath air | | If I wanted to add an extra day on mars I could just enter a new row, recalculate the forumula, and the dates would be automagically updated. It's not such a big deal in a small example like this but I'm planning out a 3 week vacation with a fair number of destinations. I'd like the day of week to display because some sites are closed on certain days. It goes without saying that I've spent more time trying to figure this out than it would actually save so it's more about education at this point :) On Wed, Mar 17, 2010 at 8:26 AM, Dan Davison wrote: > Josh Mattoon writes: > > > I'm using the spreadsheet capabilities of org for the first time (very > cool!) > > to plan an upcoming trip. I'd like to create a column formula to > automatically > > calculate the dates/day of week but I'm a bit stumped. I don't see a way > for > > the formula to know which row it is currently processing. I'm also > coming up > > short trying to find any elisp to go from day of year -> formatted date > string. > > Any suggestions? > > Hi Josh, > > Could you provide a small example table that shows the challenge you are > describing? > > Dan > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Please use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016368e357f88f93e048201eb82 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sure thing.=A0 Basically I'd like the "date" column to be aut= omatically calculated so that I can move things around, add extra days here= and there, and not have to edit that column by hand.

| date=A0=A0= =A0=A0=A0 | location | activities=A0=A0=A0 | notes=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 |
|-----------+----------+---------------+----------------------------|
| = 03-16 Tue | moon=A0=A0=A0=A0 | collect rocks |=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 |
| 03-17 Wed | m= ars=A0=A0=A0=A0 | terraform=A0=A0=A0=A0 | this might take a few days |
|= 03-18 Thu | earth=A0=A0=A0 | breath air=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 |

If I wanted to add an extra day on mars I could just enter a new row, r= ecalculate the forumula, and the dates would be automagically updated.=A0 I= t's not such a big deal in a small example like this but I'm planni= ng out a 3 week vacation with a fair number of destinations.=A0 I'd lik= e the day of week to display because some sites are closed on certain days.=

It goes without saying that I've spent more time trying to figure t= his out than it would actually save so it's more about education at thi= s point :)


On Wed, Mar 17, 2010 at 8:= 26 AM, Dan Davison <davison@stats.ox.ac.uk> wrote:
<= div class=3D"h5">Josh Mattoon <= joshmattoon@gmail.com> writes:

> I'm using the spreadsheet capabilities of org for the first time (= very cool!)
> to plan an upcoming trip. =A0I'd like to create a column formula t= o automatically
> calculate the dates/day of week but I'm a bit stumped. =A0I don= 9;t see a way for
> the formula to know which row it is currently processing. =A0I'm a= lso coming up
> short trying to find any elisp to go from day of year -> formatted = date string.
> =A0Any suggestions?

Hi Josh,

Could you provide a small example table that shows the challenge you are describing?

Dan


> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016368e357f88f93e048201eb82-- --===============0733922547== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0733922547==--