I am trying to rename a row inside a table using a formula in Org mode (don't ask why I'm doing this, I need to do it that way) but I'd like to call this row #
. I'm doing this:
| #ERROR | B | C |
|--------+---+---|
| 1 | 2 | 3 |
| 1 | 2 | 3 |
#+TBLFM: @1$1=#
As you can see I'm getting an error. I guess that's because #
is a special character reserved to indicate line numbers.
So I'd like to know how to escape this character to interpret it as a normal string.
C-c {
to turn on the formula debugger to see what error is generated. In this case, it saysError: #'s not allowed in this context
; that's an error generated by Calc when it reads the formula, so using an elisp formula (as in the answer below) is probably benign, as long as you don't use that cell in another formula.