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


Hi,

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 3.5.7.2,
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
Regina


--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


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.