At 17:30 19/07/2024 -0400, James Lockie wrote:
I want to do something like this now:
=IF(FIND("Nationwide", B1)>0,1,2)
It works if "Nationwide" is found in B1 but I get #VALUE! if it is not found.
I'm guessing because the FIND is not returning a number?
Yes: FIND() itself returns error 519, alias #VALUE, in this case.
Try
=IF(ISNUMBER(FIND("Nationwide",B1)),1,2)
or
=IF(ISERROR(FIND("Nationwide",B1)),2,1)
I trust this helps.
Brian Barker
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy
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.