Johnny,
Thanks for your response.
I should have been more clear in my original posting. I am not trying to do this in Calc. I am trying to do it in Base Report Generator.
I have a text field in the database which I want to prefix with a dash (-) if, and only if, there is text (not NULL) in that field.
None of the examples you gave will work as I expect (and as the number formatting help implies) in my context (with Base Report Generator). No matter how I format it, the result is strange and almost indeterminate. Sometimes if the text field is alpha-numeric, the result is "-" without the text. Other times it is the text without the "-" prefix. Sometimes when the text field is numeric-only, the result is the text without the "-". Sometimes not one of these. As I said, indeterminate results.
Not getting a number when encountered is not what I am looking for. In all cases, if there is text there, I want it to be in the report. Also, I do not want the dash prefix, if there is no text to be in the report.
So, I am not sure what is going on. It almost looks like a bug with the unexpected results. It also appears the formatting for the Report Generator behaves differently than for Calc.
Thanks.
Girvin