From: torys.anderson@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: Table Formula: Update column, then update value
Date: Thu, 11 Sep 2014 10:00:18 -0400 [thread overview]
Message-ID: <87oaum6yvh.fsf@gmail.com> (raw)
I have a table that calculates daily cost and then sums the hours and the weekly cost. But I can't seem to get a formula that will do the former.
| Date | Hours | Rate | Cost |
|--------------+-------+------+------|
| September 8 | 0.50 | 1 | 1. |
| September 9 | 2.00 | 1 | 2. |
| September 10 | 2.00 | 1 | 2. |
| September 11 | 2.00 | 1 | 2. |
| September 12 | 2.00 | 1 | 2. |
|--------------+-------+------+------|
| | 8.5 | | 399. |
| ^ | hrs | | ttl |
#+TBLFM: $hrs=vsum(@I..II)::$ttl=vsum(@I..II)
Before the formula above works, I end up pasting the following line just below the last date (above the @II line):
#+TBLFM: $4=vsum($2*$3)
So, I have to copy-paste into the middle of my table, run the line, then cut the line back out of the table and run the lower line. I'm just sure there's a better way; it even seems like once upon a time I had something working. But is there a non-repetitive way to autofill the COST ($4) column between @I..II without wiping out everything else?
next reply other threads:[~2014-09-11 14:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 14:00 Tory S. Anderson [this message]
2014-09-11 14:30 ` Table Formula: Update column, then update value Eric S Fraga
2014-09-11 14:50 ` Tory S. Anderson
2014-09-11 18:21 ` Eric S Fraga
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=87oaum6yvh.fsf@gmail.com \
--to=torys.anderson@gmail.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).