Detailed Calculation Settings

Sets the rules for conversion from strings values to numeric values, string values to cell references, and strings values to date and time values. This affects built-in functions such as INDIRECT that takes a reference as a string value or date and time functions that takes arguments as string values in local or ISO 8601 formats.

要访问此命令...

Menu - LibreOffice Calc - Formula, and in section Detailed Calculation Settings press Details... button.


Contents to Numbers

Conversion from text to number

当文本作为算术运算的运算数使用,或当函数需要数字参数,却收到文本参数时应如何处理。只有整数(包括指数)与 ISO 8601 格式的日期与时间(扩展格式,带分隔符)可以无歧义地转换。带小数分隔符的分数或 ISO 8601 之外的日期数值的转换取决于语言环境。请注意,在依赖于语言环境的转换中,最终得到的数值结果在不同的语言环境中可能会不同!

Generate #VALUE! error: Text found where numeric data is expected will generate #VALUE! error. Example: "123.45" will generate a #VALUE! error, while 123.45 not.

Treat as zero: Any text found where numeric data is expected will be considered as a number of value zero. Example: "123.45" will map to zero, while 123.45 not.

Convert only if unambiguous: If the text represents a valid and unambiguous numeric value, convert it. Example: "123.456" will generate a #VALUE! error because the text contains a separator, while "123456" will not.

Convert also locale dependent: convert values valid in the locale representation. Example: "123,45" is a valid number in some locales because the comma is the decimal separator there.

Treat empty string as zero

This option determines how an empty string is treated when used in arithmetic operations. If you have set "Conversion from text to number" to either "Generate #VALUE! error" or "Treat as zero", you cannot choose (here) if conversion of an empty string to a number will generate an error or if it will treat empty strings as zero. Otherwise this option determines how empty strings are treated.

Reference syntax for string reference

Formula syntax to use when parsing references given in string parameters. This affects built-in functions such as INDIRECT that takes a reference as a string value.

Use formula syntax:

Calc A1:

Excel A1:

Excel R1C1: