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: [email protected]
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