Calc Error Codes
Calc Error Codes
Appendix C
Calc Error Codes
Copyright
This document is Copyright © 2005–2012 by its contributors as listed below. You may distribute it
and/or modify it under the terms of either the GNU General Public License
(http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution
License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.
All trademarks within this guide belong to their legitimate owners.
Contributors
Barbara Duprey
Jean Hollis Weber
Feedback
Please direct any comments or suggestions about this document to:
[email protected]
Acknowledgments
This appendix is based on Appendix C of the OpenOffice.org 3.3 Calc Guide. The contributors to
that appendix are:
Richard Barnes
Magnus Adielsson
Iain Roberts
Jean Hollis Weber
When the cell displaying the #REF error code in Figure 1 is selected, the status bar displays the
error message as shown in Figure 2. This message is more descriptive than the message
displayed in the cell, but it still may not provide enough information to correctly diagnose the
problem. For fuller explanations, consult the following tables and the Help topic, Error Codes in
LibreOffice Calc.
This appendix presents error codes in two tables. This first table explains error messages which
are displayed within the cell that actually contains the error. Except in the case of the ### error,
they all correspond to a Calc error code number. The second table explains all of the error codes,
listed by code number, including those errors codes in the first table.
Err502 502 Function argument is not valid, or more than one matching cell is
found by the DGET function.
#VALUE 519 The formula within the cell returns a value that does not correspond
to the definition of the formula or functions used. This error could
also mean that the cell referenced by the formula contains text
instead of a number.
#REF! 524 The formula within the cell uses a reference that does not exist.
Either a column or row description name could not be resolved, or
the column, row, or sheet that contains a referenced cell is missing.
Errors described as Internal errors should not be encountered by users under normal
Note conditions. Errors listed as Not used are not currently assigned to any error condition
and will not occur.
502 Invalid argument Function argument is not valid; for example, a negative
number for the root function. This error also occurs if more
than one matching cell is found by the DGET function.
504 Parameter list error Function parameter is not valid; for example, text instead of
a number, or a domain reference instead of a cell reference.
510 Missing variable Variable is missing; for example, when two operators are
together "=1+*2".
511 Missing variable Function requires more variables than are provided; for
example, AND() and OR().
512 Formula overflow The total number of internal tokens (that is, operators,
variables, brackets) in the formula exceeds 512, or the total
number of matrices the formula creates exceeds 150. This
includes basic functions that receive too large an array as a
parameter.
514 Internal overflow Sort operation attempted on too much numerical data (max.
100000) or a calculation stack overflow.
516 Internal syntax error Matrix is expected on the calculation stack, but is not
available.
517 Internal syntax error Unknown error; for example, a document with a newer
function is loaded in an older version of Calc that does not
contain the function.
519 No result (cell Formula yields a value that does not correspond to the
displays #VALUE) definition, or a cell that is referenced in the formula contains
text instead of a number.
522 Circular reference Formula refers directly or indirectly to itself and the
Iterations option is not selected under Tools → Options →
LibreOffice Calc → Calculate.
524 Invalid references A column or row description name could not be resolved, or
(cell displays #REF!) the column, row, or sheet that contains a referenced cell is
missing.
525 Invalid names (cell An identifier could not be evaluated; for example, no valid
displays #NAME?) reference, no valid domain name, no column/row label, no
macro, incorrect decimal divider, add-in not found.
526 Internal syntax error Obsolete, no longer used, but could come from old
documents if the result is a formula from a domain.
527 Internal overflow References, such as when a cell references a cell, are too
encapsulated or deeply nested. This is an internal error and
should not be displayed in LibreOffice.