emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: Bruno Barbier <brubar.cs@gmail.com>
Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-orgmode@gnu.org
Subject: Re: org-table, empty cells and nan
Date: Fri, 16 Jun 2023 20:49:15 +0200	[thread overview]
Message-ID: <87sfargs44.fsf@mat.ucm.es> (raw)
In-Reply-To: 648cadf3.050a0220.db2ee.5e96@mx.google.com

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

>>> "BB" == Bruno Barbier <brubar.cs@gmail.com> writes:

> Hi,

> Uwe Brauer <oub@mat.ucm.es> writes:

>> A solution is to put 0 in colum 4, but for some reasons which are a
>> complicated to explain, I want to avoid that.
>> 
>> | Name  | Exam1 | Exam2 | Exercises | Ex1_Ex2 | Total |
>> |-------+-------+-------+-----------+---------+-------|
>> | Smith |   5.9 |  7.90 |         0 |    5.81 |   5.8 |
>> #+TBLFM: $6=if("$2" == "nan", string("NP"), 0.65*$2+0.25*$3+$4); E f-1
>> 
>> 
>> 
>> Any idea how to deal with the situation?

> Maybe this formula?

>     #+TBLFM: $6=if("$2" == "nan", string("NP"), 0.65*$2+0.25*$3+ if("$4" == "nan", 0, $4)); E f-1

Ha nested if, ah, of course

Thanks very very much


-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of the Ukraine.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

      reply	other threads:[~2023-06-16 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-16 16:55 org-table, empty cells and nan Uwe Brauer
2023-06-16 18:46 ` Bruno Barbier
2023-06-16 18:49   ` Uwe Brauer [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=87sfargs44.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=brubar.cs@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).