From: Carsten Dominik <dominik@science.uva.nl>
To: "Parker, Matthew" <MParker@seic.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Using numbers w/ commas in spreadsheets?
Date: Wed, 3 Sep 2008 09:03:48 +0200 [thread overview]
Message-ID: <552EEEB8-3F84-46E4-AF13-83DFE5A542E6@uva.nl> (raw)
In-Reply-To: <9E067A1AECCB154485D4CF7E4BEF4D8E097A1E3B@post07.corp.seic.com>
[-- Attachment #1.1: Type: text/plain, Size: 1242 bytes --]
On Aug 27, 2008, at 6:18 AM, Parker, Matthew wrote:
> Is it possible to work w/ numbers w/ commas in 'spreadsheets'?
No, this is not possible.
- Carsten
>
> when trying to add 3,000 to 4,000 below...
> =$1+$2
> ... yields 7
>
> and this works but is long winded:
> @2$3='(+ (string-to-number (replace-regexp-in-string "," "" $1))
> (string-to-number (replace-regexp-in-string "," "" $2)) )
>
> I reviewed the chapter on tables... am I missing something simple?
>
> Thanks
>
> | one | two | sum |
> |---------+---------+-----------------------|
> | 3000 | 4000 | 7000 |
> | 3,000 | 4,000 | 7 |
> | 3,000 | 4,000 | 7000 |
> | "3,000" | "4,000" | [103, 88, 96, 96, 96] |
> | 3\,000 | 4\,000 | #ERROR |
> | '3,000' | '4,000' | #ERROR |
> #+TBLFM: @2$3='(+ (string-to-number (replace-regexp-in-string "," ""
> $1)) (string-to-number (replace-regexp-in-string "," "" $2)) )::@3$3=
> $1+$2
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #1.2: Type: text/html, Size: 10031 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
prev parent reply other threads:[~2008-09-03 7:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-27 4:18 Using numbers w/ commas in spreadsheets? Parker, Matthew
2008-09-03 7:03 ` Carsten Dominik [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:
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=552EEEB8-3F84-46E4-AF13-83DFE5A542E6@uva.nl \
--to=dominik@science.uva.nl \
--cc=MParker@seic.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).