I am trying to have tables reference the text in other tables in the same document.
However, the functions that should be returning text only ever resolve to 0.
So, if I have one cell set to ="Sample Text" instead of having the words 'Sample Text' appear in the cell with that formula... I get 0.
Same with =T("Sample Text") or =<SomeCell with SampleText> etc...
Why is this? It works fine in Calc, but not in writer.
[Solved] Writer text functions only return "0"
-
- Posts: 1
- Joined: Thu Apr 25, 2019 5:23 pm
[Solved] Writer text functions only return "0"
Last edited by hugohrobles on Fri Apr 26, 2019 1:52 pm, edited 1 time in total.
OpenOffice 4.1.2 on Windows 10
-
- Volunteer
- Posts: 1549
- Joined: Wed Jun 24, 2015 12:56 am
- Location: Colorado, USA
Re: Writer text functions only return "0"
According to the Writer User Guide
Using spreadsheet functions in a table
In a table in a Writer document, you can use some of the mathematical functions that
are normally implemented by OpenOffice.org Calc. For many simple functions, Writer
tables can be used as basic spreadsheets.
since a string has no value it is represented as 0
Using spreadsheet functions in a table
In a table in a Writer document, you can use some of the mathematical functions that
are normally implemented by OpenOffice.org Calc. For many simple functions, Writer
tables can be used as basic spreadsheets.
since a string has no value it is represented as 0
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
Re: Writer text functions only return "0"
The operative terms in UnklDonald418's post are "... use some of the mathematical functions ...".
The set of available functions is fairly small compared to what you have in Calc, and the syntax is different.
Workaround for automated repeating text content:
The field can be reused anywhere in your document. The name will occur in the Selection pane of the Fields - Variables dialog, for quick selection.
If you need better spreadsheet functionality, create a spreadsheet and do all the calculations/referencing there. You can insert multiple links to the same file in your Writer document. A bit clunky...
The set of available functions is fairly small compared to what you have in Calc, and the syntax is different.
Workaround for automated repeating text content:
- Insert - Fields - Other...,
- Select the Variables tab to insert a User field.
The field needs a name and a value. Make sure to use text format if you need a text value.
The field can be reused anywhere in your document. The name will occur in the Selection pane of the Fields - Variables dialog, for quick selection.
If you need better spreadsheet functionality, create a spreadsheet and do all the calculations/referencing there. You can insert multiple links to the same file in your Writer document. A bit clunky...