每表常量未被替换

时间:2012-03-27 16:38:56

标签: emacs spreadsheet org-mode

这是我的表

|   | Name        | Vert    |  Horz | Area   | Cost | USD |
|---+-------------+---------+-------+--------+------+-----|
| $ | $price = 75 | $Hi=2.9 |       |        |      |     |
| # | Kitchen     | 4.160   | 3.630 | #ERROR |      |     |
|   |             |         |       |        |      |     |
|   |             |         |       |        |      |     |
|   |             |         |       |        |      |     |
    #+TBLFM: $5=$4*$Hi*2+$3*$Hi*2

这是跟踪输出:

Substitution history of formula
Orig:   $4*$Hi*2+$3*$Hi*2
$xyz->  $4*(#UNDEFINED_NAME)*2+$3*(#UNDEFINED_NAME)*2
@r$c->  $4*(#UNDEFINED_NAME)*2+$3*(#UNDEFINED_NAME)*2
$1->    (3.630)*(#UNDEFINED_NAME)*2+(4.160)*(#UNDEFINED_NAME)*2
       ---------^
Error:  #'s not allowed in this context

怎么了?为什么$Hi没有被替换?

1 个答案:

答案 0 :(得分:2)

啊,我自己找到了。这是错误的行和固定行:

| $ | $price = 75 | $Hi=2.9 |       |        |      |     |
| $ |  price = 75 |  Hi=2.9 |       |        |      |     |