emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with empty column
@ 2018-01-05  8:28 Uwe Brauer
  2018-01-05  9:25 ` Loris Bennett
  2018-01-05  9:35 ` Eric S Fraga
  0 siblings, 2 replies; 9+ messages in thread
From: Uwe Brauer @ 2018-01-05  8:28 UTC (permalink / raw)
  To: emacs-orgmode

Hi

Consider please the following table



| Name   | E1 | E2 | E3 | E4 | Res |
|--------+----+----+----+----+-----|
| Entry1 |    |    |    |    | NP  |
| Entry2 | 10 | 20 | 30 | 40 | 10  |
#+TBLFM: $6=if("$2" == "nan" , string("NP"),($2+$3+$4+$5)/10);E

The last column contains a string NP if the corresponding cell in the
second column is empty.

However when   I consider

| Name   | E1 | E2 | E3 | E4 | Res |
|--------+----+----+----+----+-----|
| Entry1 |    |    |    |    |  NP |
| Entry2 | 10 | 20 | 30 | 40 |  10 |
| Entry3 | 10 |    | 20 | 30 | nan |
#+TBLFM: $6=if("$2" == "nan" , string("NP"),($2+$3+$4+$5)/10);E


The last row behaves strangely the cell in the second column is *not*
empty but the cell in the third one is, nevertheless the cell in the
last column contains the string nan, which I don't understand.

Any help would be appreciated

Thanks

Uwe Brauer 

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-06 11:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-05  8:28 problem with empty column Uwe Brauer
2018-01-05  9:25 ` Loris Bennett
2018-01-05  9:35 ` Eric S Fraga
2018-01-05 12:44   ` Uwe Brauer
2018-01-05 13:55     ` Michael Brand
2018-01-06  8:43       ` Uwe Brauer
2018-01-05 14:46     ` Eric S Fraga
2018-01-06  8:37       ` Uwe Brauer
2018-01-06 11:23         ` Eric S Fraga

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