忽略组织模式 table 公式中的零
ignore zeros in org-mode table formula
我想要一个分隔两个单元格的列公式,但如果分母为零则忽略一行。
类似于:
| 42 | 2 | 21 |
| 42 | 0 | round(42/0) |
#+TBLFM: =round(/)
但第三列为空而不是 round(42/0)
。
这可能吗?
这样做:
| 42 | 2 | 21 |
| 42 | 0 | |
#+TBLFM: =if(>0,round(/), string(""))
string("")
是表示空单元格的方式。这和 if()
语法在 in the manual.
中进行了描述
我想要一个分隔两个单元格的列公式,但如果分母为零则忽略一行。
类似于:
| 42 | 2 | 21 |
| 42 | 0 | round(42/0) |
#+TBLFM: =round(/)
但第三列为空而不是 round(42/0)
。
这可能吗?
这样做:
| 42 | 2 | 21 |
| 42 | 0 | |
#+TBLFM: =if(>0,round(/), string(""))
string("")
是表示空单元格的方式。这和 if()
语法在 in the manual.