Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Miss Keating schrieb
Is there any way to force calc to treat text in a cell as equivalent to
zero when a number is expected?

Yes, you can apply the function N before you do further calculation.
The function N returns 0 for a text and the number itself for a number. The cells should not have any error-value.

If you have a bunch of those cells, I would add a new sheet and use the formula =N(reference to cell in old sheet) for all cells. And then do calculations like sum, average, or whatever you need on the new sheet.

 I always thought that this was the
normal presumption, but it appears not to be, at least for LO,
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b under Win7.

Values that can be converted without problems are converted automatically in much case. Problems might come because of local interpreting of decimal separator or date. That was done for former Excel users. In other cases, for example in the function PRODUCT, not 0 but 1 is used. So it is always safer not to trust automatically conversion, but do conversion yourself.

Kind regards

For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.