Ron Adams wrote:
How do I leverage IF to replace error conditions, making them instead
display constant string values? For instance, how would I replace #N/A,
#NAME and #VALUE with “None”?
Some functions you can look into:
ISNA(reference) - [is the reference #N/A ?]
ISERROR(reference) - [is the reference any of the following: #VALUE, #REF,
#NAME or #N/A ?]
ISERR(reference) - [is the reference any of the following: #VALUE, #REF or
#NAME ?]
All of these functions return boolean results (either TRUE, or FALSE) which
you can then use in an IF() statement. Notice that ISERROR() and ISERR()
only differ when it comes to #N/A. Please also note that I am not 100% sure
of the definitions I gave here, this is only what I observed from use.
As mentioned before, I think ISERROR() would work for your case. There are
also some other IS... functions you can look at, but are not really relevant
to this topic. Hope this helps.
Regards
Jack
--
View this message in context:
http://nabble.documentfoundation.org/Test-for-Error-Conditions-in-Calc-tp2982777p2984083.html
Sent from the Users mailing list archive at Nabble.com.
--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/www/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.