Emacs 如何在hline上方添加列
我的问题是10美元,我只想在hline上方显示本周的计算金额,而不是本周的每一列Emacs 如何在hline上方添加列,emacs,org-mode,Emacs,Org Mode,我的问题是10美元,我只想在hline上方显示本周的计算金额,而不是本周的每一列 对不起,可能有点不清楚我想要什么。我将尝试做一个模型来解释我的问题: # Column Formulas $7 = '(format-seconds "%.2h:%.2m" (- (- (float-time (org-time-string-to-time $End)) (float-time (org-time-string-to-time $Start))) (* (string-to-number $Lu
对不起,可能有点不清楚我想要什么。我将尝试做一个模型来解释我的问题:
# Column Formulas
$7 = '(format-seconds "%.2h:%.2m" (- (- (float-time (org-time-string-to-time $End)) (float-time (org-time-string-to-time $Start))) (* (string-to-number $Lunch) 60)))
$8 = '(number-to-string (- (- (float-time (org-time-string-to-time $End)) (float-time (org-time-string-to-time $Start))) (* (string-to-number $Lunch) 60)))
$9 = '(/ (string-to-number (format-seconds "%m" $floatTime)) 60.0);%.3fN
$10 = '(format-seconds "%.2h:%.2m" (+ @-I$8..@+I$8));N
# Named Field Formulas
$LR10 = $LR8
$LR7 = Sum
$LR8 = '(format-seconds "%.2h:%.2m" (+ @2..));N
$LR9 = '(+ @2..@-I);N
这是我的桌子。$LR1=vsum(@2..@-I)
我的问题是在hline之前计算$2的值。
这是两个hline之间字段的总和。。指30.0和115.0。。
我该怎么做
基本上是@+I$2(虽然这对我不起作用..这是可以做到的,尽管它需要一个稍微有创意的公式来工作。(它应该更容易工作,但由于某些原因,明显的单元格引用失败)
使用示例表所需的公式如下(请注意,我在<代码>的中间分割公式行::),将公式分开以避免包装。
|--------+-------|
| Number | prob |
|--------+-------|
| 25.0 | |
| 50.0 | |
| 30.0 | |
| 10.0 | 115.0 |
|--------+-------|
| 10.0 | |
| 20.0 | 30.0 |
|--------+-------|
| 145. | |
因此,对于两条水平线之间的任何区域,您必须将所需的线设置为:@II-1$2..@II$2
,或者对于原始示例,它将是@II-1$10@II$10
@I-1
表单似乎只在范围公式中起作用,即使它应该只指定一行。因此,您必须使用@I-1..@I
的范围,以便它只选择所需的一行(然后指定哪一列)你认为你可以提供一个你想要求和的单元格的模型吗?它很可能是使用单元格公式而不是列公式来完成的,但我不确定你想将它与哪个单元格相关联。显示整个#+表
代码也会很有用,这样可以更好地了解如何帮助。标题缺少一个v雇员再培训局,是总和吗?
|--------+-------|
| Number | prob |
|--------+-------|
| 25.0 | |
| 50.0 | |
| 30.0 | |
| 10.0 | 115.0 |
|--------+-------|
| 10.0 | |
| 20.0 | 30.0 |
|--------+-------|
| 145. | |
|--------+------|
| Number | prob |
|--------+------|
| 25 | |
| 50 | |
| 30 | |
| 10 | 115 |
|--------+------|
| 10.0 | |
| 20.0 | 30. |
|--------+------|
| 145. | 145. |
|--------+------|
#+TBLFM: @IIIII-1$2..@IIIII$2=vsum(@IIII$1..@IIIII$1):
:@IIII-1$2..@IIII$2=vsum(@III$1..@IIII$1):
:@III-1$2..@III$2=vsum(@II$1..@III$1)