emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Org spreadsheet formula range destination and per-cell placement for Lisp
Date: Mon, 25 Mar 2013 10:23:05 +0100	[thread overview]
Message-ID: <86fvzj3kau.fsf@somewhere.org> (raw)
In-Reply-To: CAGwjgEjq1FYKcUUU5H6oiYCzzphdMX++Db3rWLdw=qmaAk54WQ@mail.gmail.com


Paul Michael Reilly wrote:
> I am in the throes of setting up an Org mode spreadsheet for an
> invoicing/status/planning tool and came across this fabulous thread: *[O]
> org table calc and lisp for hh:mm
> timetable<http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg00972.html>
>  *at http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg00972.htmlwhich
> provided me much of what I need.  So thanks to all involved for that
> excellent piece of work.
> The one problem I am having trouble grasping is in how to use Emacs Lisp to
> generate a range of values automagically.  I have no trouble with a single
> cell using Lisp and passing in a rectangular region to process or in
> setting up a region using the Org table/spreadsheet/calc support described
> in the various Google accessible documentation.
> What I am trying to do at a high level is setup a table with rows of
> actions spanning a start and stop time.  Each action row has a bill-to
> category column.  In the table, as part of a Lisp based formula, I want to
> process these action rows and build a list of "bill-to : total time"
> summary values and then place these summaries in a range in the table, so a
> fragment of the table might look like:
> ... | Client1 | Client2 | Commute | ...
> ... |  12.50  |  22.00  |  10.5        | ...
> where the numbers (hours)  have been summed by filtering the task rows by
> clients.  Hope that's clear.
> So there are essentially two issues for me:  the first is understanding how
> to associate a range destination for a Lisp based formula result, which I
> think can be done, I just do not understand how to do it yet, and second,
> probably an enhancement request, is to figure out how to pass a list of
> cell addresses to a List form (along with other data) and have the form
> compute and store values to those cells.  The latter would a sort of holy
> grail, at least for me.

I won't answer your post, but will present you what I'm doing, as I'm using
Org for billing my clients.

How I do is:

- Clock my time in the client file
- Generate a dynamic block for each client file

Quite easy. So, this is just to show you an alternative, in case you did
overlook that.

Best regards,

Sebastien Vauban

      reply	other threads:[~2013-03-25  9:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-24 20:26 Org spreadsheet formula range destination and per-cell placement for Lisp Paul Michael Reilly
2013-03-25  9:23 ` Sebastien Vauban [this message]

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:

  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=86fvzj3kau.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \


* 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


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).